Skip to main content
GET
/
getPositions
getPositions
curl --request GET \
  --url https://alphainsider.com/api/getPositions
{
  "success": true,
  "response": [
    {
      "position_id": "PAiBXHzE10Fa4ioITCXbX",
      "strategy_id": "7Wy5AzIKY9bCmkIqjcLSg",
      "type": "liability",
      "price": "1.000000000000000",
      "amount": "-0.932626292686600",
      "total": "-0.932626292686600",
      "updated_at": "2024-07-18T20:14:44.660Z",
      "created_at": "2024-07-18T20:14:44.660Z",
      "stock_id": "ubfhvYUsgvMIuJPwr76My",
      "figi_composite": null,
      "symbol": "USD",
      "name": "US Dollar",
      "sector": "Unallocated",
      "security": "",
      "exchange": "ALPHAINSIDER",
      "stock": "USD",
      "peg": "USD",
      "provider": "alphainsider",
      "slippage": "0.000000000000000",
      "fee": "0.000000000000000",
      "links": {},
      "stock_status": "active",
      "bid": "1.000000000000000",
      "ask": "1.000000000000000",
      "last": "1.000000000000000"
    },
    {
      "position_id": "XoLx1OyDdRBr_yq4JHJdB",
      "strategy_id": "7Wy5AzIKY9bCmkIqjcLSg",
      "type": "asset",
      "price": "2996.940000000000000",
      "amount": "0.000647643919923",
      "total": "1.940949969374036",
      "updated_at": "2024-07-18T20:14:44.660Z",
      "created_at": "2024-05-08T19:51:06.230Z",
      "stock_id": "v3lhjrwEhNuAOxPT29oxO",
      "figi_composite": null,
      "symbol": "ETH-USD",
      "name": "Ethereum",
      "sector": "Cryptocurrencies",
      "security": "cryptocurrency",
      "exchange": "COINBASE",
      "stock": "ETH",
      "peg": "USD",
      "provider": "coinbase",
      "slippage": "0.000000000000000",
      "fee": "0.002500000000000",
      "links": {
        "trading_view": "https://www.tradingview.com/symbols/ETHUSD/?exchange=COINBASE",
        "yahoo_finance": "https://finance.yahoo.com/quote/ETH-USD",
        "coin_marketcap": "https://coinmarketcap.com/currencies/ethereum/",
        "google_finance": "https://www.google.com/finance/quote/ETH-USD"
      },
      "stock_status": "active",
      "bid": "2633.09",
      "ask": "2633.09",
      "last": "2633.09"
    }
  ]
}

Headers

Authorization
string<JWT>

User API token.

Query Parameters

strategy_id
string
required

Strategy ID.

Response

Request was successful.