Skip to content

Instantly share code, notes, and snippets.

@gsora
Created June 22, 2017 12:02
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 gsora/e73eecf7ad7182961fa841921ea3ede4 to your computer and use it in GitHub Desktop.
Save gsora/e73eecf7ad7182961fa841921ea3ede4 to your computer and use it in GitHub Desktop.
{
"positions": [{
"id": 4,
"status": "open",
"date": "2016-02-26T17:50:12.000Z",
"amount": 0.01,
"base_price": 341.0,
"type": "long",
"leverage": 2.5,
"profit_loss": 3.35,
"trade_id": 448525,
"order_id": 30487016
},
{
"id": 2,
"status": "closed",
"date": "2016-02-27T09:53:10.000Z",
"amount": 0.09,
"base_price": 343.5,
"type": "long",
"leverage": 2.5,
"profit_loss": -0.65,
"trade_id": 448524,
"order_id": 30487017
}
],
"meta": {
"total_count": 50,
"first": {
"page": 1,
"href": "https://api.therocktrading.com/v1/funds/BTCEUR/positions?page=1"
},
"previous": null,
"current": {
"page": 1,
"href": "https://api.therocktrading.com/v1/funds/BTCEUR/positions?page=1"
},
"next": {
"page": 2,
"href": "https://api.therocktrading.com/v1/funds/BTCEUR/positions?page=2"
},
"last": {
"page": 2,
"href": "https://api.therocktrading.com/v1/funds/BTCEUR/positions?page=2"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment