Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 2.2 KB

trade-notification.md

File metadata and controls

56 lines (40 loc) · 2.2 KB
description
Subscribe to this topic to receive notifications about new trades for specific trading pairs.

Trade Notification

Rules

  • Topic name: trade
  • ApiKey required: No

Parameters

ParameterNoteRequired
marketTrading pairY

Status code

Value Note
104109 Invalid topic or parameters

Notification example

{
    "topic": {
        "topic": "trade",
        "market": "LRC-ETH"
    },
    "ts": 1584717910000,
    "data": [
        [
            "1584717910000",  //timestamp
            "123456789",  //tradeId
            "buy",  //side
            "500000",  //size 
            "0.0008",  //price
            "100"  //fee
        ]
    ]
}

Data Model

Notification

FieldTypeNoteRequired
topicJSONTopic and parametersY
tsintegerNotification timestamp (milliseconds)Y
dataList[List[string]]Trade array listY

Trade

IndexTypeNoteRequired
1integerTrade timestampY
2integerFill sequence numberY
3stringTaker's side (buy or sell)Y
4stringFilled amount of base tokenY
5stringFill priceY
6stringFee paid in base tokenY