Sends a single, new order into the exchange.

Authentication

Using the same authentication to the API Authenticate Method

Params


ParamDescription
tokenUser JSON Web Token | User API Key
api_key_authApi key delivered by Depasify

example


URL_WEBSOCKET = wss://{host}?token=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
client_idNuuidstringClient specified identifier
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].
priceN50000decimalMandatory if orderType: 'limit'. Order limit price
time_forceYFillAndKillstringSpecifies how long the order remains in effect. Valid values: [GoodTillCancel, FillAndKill, or FillOrKill.]