โš™๏ธAPI

[GET] Get Positions by Address

https://graph.stellaxyz.io/api/rest/positions/:address
Parameters
Type
Example

address

String (Case Insensitive)

0x81e1A8AD25FAE74a955166E9AdDf0a43f23db12e

Example Response

{
  "position": [
    {
      "id": 43,
      "strategy_id": 16,
      "position_id": 3,
      "borrowed_amounts": [362.714907, 11.380251],
      "claimable_amounts": null,
      "claimable_token": null,
      "position_value_usd": 424.0865485960339,
      "collateral_value_usd": 0,
      "opened_at": "2023-06-22T08:15:14",
      "pnl_percent": 0.0003791518386889244,
      "pnl_usd": 0.0189545136006679,
      "status": "Closed",
      "updated_at": "2023-06-22T08:18:01.316"
    },
    {
      "id": 19,
      "strategy_id": 13,
      "position_id": 3,
      "borrowed_amounts": [0, 81.52],
      "claimable_amounts": 15.251389,
      "claimable_token": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
      "position_value_usd": 96.7810661389,
      "collateral_value_usd": 0,
      "opened_at": "2023-06-21T06:57:15",
      "pnl_percent": -0.3028816092753054,
      "pnl_usd": -6.6270338611,
      "status": "Liquidated",
      "updated_at": "2023-06-21T13:48:02.289"
    }
  ]
}

[GET] Get All Strategies

Example Response

Last updated