Skip to content

Instantly share code, notes, and snippets.

@gsora
Created June 22, 2017 12:02
Show Gist options
  • Select an option

  • Save gsora/e73eecf7ad7182961fa841921ea3ede4 to your computer and use it in GitHub Desktop.

Select an option

Save gsora/e73eecf7ad7182961fa841921ea3ede4 to your computer and use it in GitHub Desktop.

Revisions

  1. gsora created this gist Jun 22, 2017.
    47 changes: 47 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,47 @@
    {
    "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"
    }
    }
    }