API Documentation
API Documentation

Websocket XchangeFeed

This endpoint can be used to subscribe to the GWA / MWA data. These indices are calculated by BNC and published to the websocket endpoint. Clients need to send a Subscribe message to start receiving. Indices can be subscribed by the indexId or the indexType.

The index id will differ based on the index type.

 Index TypeIndex Id
 MWAMarket Id
GWAAsset Id

Clients need to call the Market and Asset REST API's to get the ids.

Subscribe by Index ID

{    
             "event":"SUBSCRIBE_INDEX_TICKER",   
             "indexId":"359107d3-bd1a-418c-9470-58831ed9a45e"
}

Subscribe by Index Type


{  
             "event":"SUBSCRIBE_INDEX_TICKER",   
             "indexType":"MWA" 
}

Response

The server will return ticks in this format

{   
             "event":"INDEX_TICKER"   
                "id": "string", 
             "indexId":"string",   
             "indexType":"string",   
             "price":"string",   
             "volume":"string",   
             "timestamp":"2018-09-06T04:35:44Z" 
}