Skip to content

Instantly share code, notes, and snippets.

@ang-st
Created September 8, 2020 10:56
Show Gist options
  • Save ang-st/baf9a6754f793ea9d18fae4d68cd6894 to your computer and use it in GitHub Desktop.
Save ang-st/baf9a6754f793ea9d18fae4d68cd6894 to your computer and use it in GitHub Desktop.
URL: /api/v1/orders/:id # retourne un ordre par son id
method : GET
required: id
example payload :
{"id":190,"side":"bid","price":"10.00","total":"10.00","amount":"1.00000000","filled":"0.00","base":"btc","quote":"eur","timestamp":1599559342,"type":"limit","state":"wait"}
URL: /api/v1/orders/opened?per=10&page=1
method: GET
optional: per (<=100), page
example payload :
{"per":10,"page":2,"total":11,"items":[{"id":193,"side":"bid","price":"10.00","total":"10.00","amount":"1.00000000","filled":"0.00","base":"btc","quote":"eur","timestamp":1599559358,"type":"limit","state":"wait"}, ...]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment