The Market Data Websocket is specific for authorized market data feed with all in fee included in the quotes.
Websocket Endpoints
Environments
There are two environments to access our authorized market data feeds:
Live
wss://market.aquanow.io/
Sandbox
wss://market-staging.aquanow.io/
Websocket Access and Authorization
API Authentication is done using an API key and a secret. User needs to associate the following information in the payload of the subscription message. View the Authorization page for more detail.
Subscribe
In order to receive data feed, users sends a subscribe message to the server, after successful websocket connection. Users must also indicate the channel they wish to subscribe on in the subscription request.
When a subscribe message is received with a pair and channel, the server will respond with a subscription message that lists all channels you are subscribed to.
There are three channels you can subscribe for:
orderBook - Orderbook across various marketplaces and exchanges.
ticker - Aggregated Open, High, Low, Close for a ticker.
gbbo - Real time best price/bids updates for subscribed ticker
Note: that the Subscribe request MUST be a JSON string. For example, in Javascript this can be achieved by using the JSON.stringify method.
Request Parameters
Name
Type
Description
apiKey
String
API key
apiSignature
String
Signature created using API secret
channel
String
Channel of subscription
type
String
Type of action; subscribe or unsubscribe
nonce
String
Numeric string timestamp in milliseconds of when the request is sent
pair
String
Symbol/currency pair; ex. – pair: “BTC-CAD”
depth
Number
Depth of an orderbook; ex. – depth: 5
precision
Number
Precision level;
ex. - precision: 2
Name
Type
Description
apiKey
String
API key
apiSignature
String
Signature created using API secret
channel
String
Channel of subscription
type
String
Type of action; subscribe or unsubscribe
nonce
String
Numeric string timestamp in milliseconds of when the request is sent
pair
String
Symbol/currency pair; ex. – pair: “BTC-CAD”
Name
Type
Description
apiKey
String
API key
apiSignature
String
Signature created using API secret
channel
String
Channel of subscription
type
String
Type of action; subscribe or unsubscribe
nonce
String
Numeric string timestamp in milliseconds of when the request is sent