Skip to content

Instantly share code, notes, and snippets.

@couillardcharles
Last active January 13, 2020 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save couillardcharles/4eccb40587fe5e9ed8eb982c28e1b531 to your computer and use it in GitHub Desktop.
Save couillardcharles/4eccb40587fe5e9ed8eb982c28e1b531 to your computer and use it in GitHub Desktop.

Changelog

Some timestamps have been added to user feeds and market data.

Http live endpoints

GET /v1/live/balances

{
  "timestamp": 1578663420324, 
  "balances": [
    [
      "BTC", 
      "98.76000000", 
      "0.00000000", 
    ]
  ]
}

GET /v1/live/orders

{ 
  "batch_id": 15926839, 
  "timestamp": 1578663420324, 
  "orders": [], 
}

GET /v1/live/products/BTC-USD/book

{
  "batch_id": 15927046,
  "timestamp": 1578663665220,
  "product_id": "BTC-USD",
  "bids": [],
  "asks": []
}

GET /v1/live/products/BTC-USD/trades

{
  "batch_id": 15927246,
  "timestamp": 1578663965220,
  "trades": []
}

Websocket channels

balance channel

{
  "payload": [],
  "seq": 0,
  "timestamp": 1578665295204,
  "type": "snapshot",
  "channel": "balance"
}

trades channel

{
  "batch_id": 15926443,
  "timestamp": 1578662780378,
  "type": "snapshot",
  "channel": "trades",
  "product_id": "BTC-USD",
  "payload": []
}  

level2 channel

{
  "batch_id": 15926514,
  "timestamp": 1578662893572,
  "type": "snapshot",
  "channel": "level2",
  "product_id": "BTC-USD",
  "payload": {
    "bids": [],
    "asks": []
  }
}

user channel

{
  "type": "snapshot",
  "channel": "user",
  "batch_id": 15926514,
  "timestamp": 1578662893572,
  "product_id": "BTC-USD",
  "payload": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment