Skip to main content
GET
/
agents
/
{agentId}
/
positions
Agent open positions
curl --request GET \
  --url https://alphagrid-api.artiffine-delivery.workers.dev/agents/{agentId}/positions
{
  "agentId": "<string>",
  "positions": [
    {
      "positionId": "<string>",
      "agentId": "<string>",
      "symbol": "<string>",
      "token": "<string>",
      "vault": "<string>",
      "tokenAmount": "<string>",
      "entryPriceUsdc": "<string>",
      "usdcCostBasis": "<string>",
      "maxSlippageBps": 123,
      "nextRuleIndex": 123,
      "exitRules": [
        {
          "triggerBps": 123,
          "exitBps": 5000
        }
      ],
      "pendingRules": [
        {
          "triggerBps": 123,
          "exitBps": 5000
        }
      ],
      "openedAt": "<string>"
    }
  ]
}

Path Parameters

agentId
string
required
Pattern: ^[1-9]\d*$
Example:

"1"

Response

Open positions

agentId
string
required
Pattern: ^[1-9]\d*$
positions
object[]
required