Skip to main content
POST
Collateral Stop-Limit Order

Authorizations

X-TXC-APIKEY
string
header
required

API Key authentication for private endpoints.

Required headers:

  • X-TXC-APIKEY: API key
  • X-TXC-PAYLOAD: Base64 encoded JSON payload
  • X-TXC-SIGNATURE: HMAC SHA512 signature

Body

application/json
market
string
required
Example:

"BTC_USDT"

side
enum<string>
required
Available options:
buy,
sell
Example:

"buy"

amount
string
required
Example:

"0.001"

price
string
required
Example:

"40000"

activation_price
string
required
Example:

"40000"

request
string
required
Example:

"{{request}}"

nonce
string
required
Example:

"{{nonce}}"

stopLoss
string
Example:

"30000"

takeProfit
string
Example:

"50000"

client_order_id
string
Example:

"order1987111"

positionSide
enum<string>
Available options:
LONG,
SHORT,
BOTH
Example:

"LONG"

Response

Successful response - stop-limit order created

order_id
integer

Unique order identifier

Example:

4180284841

client_order_id
string

Custom client order identifier. Empty string if not specified

Example:

"order1987111"

market
string

Market name

Example:

"BTC_USDT"

side
enum<string>

Order side

Available options:
buy,
sell
Example:

"buy"

type
string

Order type

Example:

"stop limit"

timestamp
number

Timestamp of order creation in Unix format

Example:

1595792396.165973

deal_money
string

Amount in money currency that is finished

Example:

"0"

deal_stock
string

Amount in stock currency that is finished

Example:

"0"

amount
string

Order amount

Example:

"0.001"

left
string

Remaining amount that must be finished

Example:

"0.001"

deal_fee
string

Fee in money that is paid when order is finished

Example:

"0"

price
string

Order price

Example:

"40000"

activation_price
string

Price at which the stop-limit order activates

Example:

"40000"

status
enum<string>

Order status

Available options:
NEW,
FILLED,
PARTIALLY_FILLED,
CANCELLED
Example:

"FILLED"

stp
string

Self trade prevention mode

Example:

"no"

oto
object | null

OTO order data when stopLoss or takeProfit is specified

positionSide
enum<string>

Position side

Available options:
LONG,
SHORT,
BOTH
Example:

"LONG"