Skip to main content
POST
Create 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

Available market. Example: BTC_USDT

Example:

"BTC_USDT"

side
enum<string>
required

Order type. Variables: 'buy' / 'sell' Example: 'buy'

Available options:
buy,
sell
Example:

"buy"

amount
string
required

Amount of stock currency to buy or sell. Example: '0.001' or 0.001

Example:

"0.001"

price
string
required

Price in money currency. Example: '9800' or 9800

Example:

"9800"

activation_price
string
required

Activation price in money currency. Example: '10000' or 10000

Example:

"10000"

request
string
required
Example:

"{{request}}"

nonce
string
required
Example:

"{{nonce}}"

client_order_id
string

Identifier should be unique and contain letters, dashes, numbers, dots or underscores. The identifier must be unique.

Example:

"order1987111"

bboRole
enum<integer>

When the BBO option is activated for Limit orders, the system selects the best market prices for execution. Variables: 1 - Queue Method / 2 - Counterparty Method.

Available options:
1,
2
stp
enum<string>

Self trade prevention mode. Variables: 'no' / 'cancel_both' / 'cancel_new' / 'cancel_old'. Example: 'no'.

Available options:
no,
cancel_both,
cancel_new,
cancel_old
Example:

"no"

Response

Order created successfully

order_id
integer

Order ID

Example:

4180284841

client_order_id
string

Custom client order ID; empty string if not specified

Example:

"order1987111"

market
string

Deal market

Example:

"BTC_USDT"

side
string

Order side

Example:

"buy"

type
string

Order type

Example:

"limit"

timestamp
number

Timestamp of order creation

Example:

1595792396.165973

deal_money
string

If order finished - amount in money currency that is finished

Example:

"0"

deal_stock
string

If order finished - amount in stock currency that is finished

Example:

"0"

amount
string

Amount

Example:

"0.01"

left
string

If order not finished - rest of the amount that must be finished

Example:

"0.001"

deal_fee
string

Fee in money currency when order is filled

Example:

"0"

price
string

Price

Example:

"40000"

postOnly
boolean

PostOnly flag

Example:

false

ioc
boolean

IOC flag

Example:

false

status
string

Order status

Example:

"FILLED"

stp
string

Self trade prevention mode

Example:

"no"

positionSide
string

Position side (for collateral orders)

Example:

"LONG"

rpi
boolean

Indicates Retail Price Improvement (RPI) mode for the order.

Example:

true