Trading Orders

Build place order with deposit calldata

post/api/v1/orders/with-deposit/calldata

Request

Request body

stockAddressstring required

Stock token contract address

depositTokenAddressstring

Deposit token contract address. Required for buy orders.

depositAmountnumber required

Human-readable deposit token amount

side'Buy' | 'Sell' required

Order side

type'Limit' | 'Market' required

Order type

quantitynumber

Quantity. Required for limit orders and market sell orders.

notionalnumber

Notional amount. Required for market buy orders.

pricenumber

Limit price. Required for limit orders.

timeInForce'DAY' | 'GTC' | 'OPG' | 'IOC' | 'FOK' | 'GTX' | 'GTD' | 'CLS'

Time in force. Required for limit orders.

deadlineinteger required

Unix seconds transaction deadline

Response

OK

codeinteger

if not 200, it means error

errMsgstring

if code not 200,this is error message

uuidstring

every request has a uuid

tinteger

server time

Changes

No recorded changes to this operation across all 1 revision of this API.