Sends a single, new order into the exchange.

Authentication

Using the sign in to the API Login Use

Params


ParamDescription
tokenToken get in login process
api_key_authApi key delivered by Depasify

example


URL_WEBSOCKET = wss://{host}?token=sing_token

const ws = new WebSocket(URL_WEBSOCKET, [api_key_auth]) ;

Message structure

ParamMandatoryExampleTypeDescription
subscribeYtradestringtype of message send. In that moment use always 'trade'
account_idYuuidstringId of the account to be associated with the trade
pairYBTC/EURstringThe symbol of the currency pair.
typeYbuystringSide of the order. Valid values: [buy, sell]
volumeN0.001decimalMandatory if type: 'sell' volume in terms of the base asset
amountN30000decimalMandatory if type: 'buy' amount in terms of the quote asset
orderTypeYmarketstringOrder type. Valid values: [market, limit].
price.N50000decimalMandatory if orderType: 'limit'. Order limit price
time_forceYFillAndKillstringSpecifies how long the order remains in effect. Valid values: [GoodTillCancel, FillAndKill, or FillOrKill.]