Get order book for a send pair

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 subscribe

ParamMandatoryExampleTypeDescription
subscribeYorderstringorder
pairYBTC/EURstringThe symbol of the currency pair.
providerYkeyrockstringthe order book provider [keyrock, binance]

Message structure unsubscribe

ParamMandatoryExampleTypeDescription
unsubscribeYorderstringorder
pairYBTC/EURstringThe symbol of the currency pair.
providerYkeyrockstringthe order book provider [keyrock, binance]

Message Response Structure

Attribute TypeObjectExample
pairstringBTC
offersarray{ price, amount, total } [
{
"price": string,
"amount": string,
"total": string
}
]
bidsarray{ price, amount, total } [
{
"price": string,
"amount": string,
"total": string
}
]