# Gang — Tokens the agent still holds per its curve / sale trades, with cost, value and PnL

Get Gang Agent Token Holdings data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Gang, configure supported query parameters and filters, and retrieve structured data including name, reported status, address, returned avg price field, and returned balance field for market reference and account inspection, and integration reference.

Documentation: https://openany.si/market/apis/gang/gang-tokens-the-agent-still-holds-per-its-curve-sale-trades-with-cost-value-and-pnl/?offering=cc5af918-021a-4a2c-9f55-da3ce38324e1
API ID: cc5af918-021a-4a2c-9f55-da3ce38324e1
Provider: gang
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/gang/api/agents/{id}/positions
Page update time: 2026-12-03T02:49:41.547Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:49:41.149Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Gang — Tokens the agent still holds per its curve / sale trades, with cost, value and PnL request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "A 0x address, or an Agent ID handle (lazy or lazy.ai)"
        }
      },
      "required": [
        "id"
      ]
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "fx": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string"
          },
          "avgPrice": {
            "type": "string"
          },
          "balance": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "balanceAtGrad": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "costQuote": {
            "type": "string"
          },
          "lastTradeTs": {
            "type": "integer"
          },
          "logoThumbUrl": {
            "type": "string"
          },
          "logoUrl": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "priceQuote": {
            "type": "string"
          },
          "quoteSymbol": {
            "type": "string"
          },
          "quoteUsd": {
            "type": "number"
          },
          "realizedQuote": {
            "type": "string"
          },
          "realizedUsd": {
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "track": {
            "type": "string"
          },
          "unrealizedQuote": {
            "type": "string"
          },
          "unrealizedUsd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "valueQuote": {
            "type": "string"
          },
          "valueUsd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "graduatedTs": {
            "type": "integer"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/gang/api/agents/0x222d44bf7c03c0f16a40047c820a2af3d4fca27a/positions' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "fx": "current",
  "items": [
    {
      "address": "0x2f7ddd86e6c4ab222eff37a2b4af8b0619d1bb47",
      "avgPrice": "0.000000002395312232",
      "balance": "10000000",
      "balanceAtGrad": null,
      "costQuote": "0.023953122329511497",
      "lastTradeTs": 1793545426,
      "logoThumbUrl": "/thumbs/0x2f7ddd86e6c4ab222eff37a2b4af8b0619d1bb47.webp?v=4e40c7a1",
      "logoUrl": "https://cdn.gang.fun/ipfs/bafkreichsfeltnu5iyrrf4db2l4apzw7cxacxmniqsoq6gskq2mygd74zu",
      "name": "猎杀2366",
      "priceQuote": "0.000000003007430236",
      "quoteSymbol": "BNB",
      "quoteUsd": 695.99,
      "realizedQuote": "0",
      "realizedUsd": 0,
      "status": "curve",
      "symbol": "2366",
      "track": "v3",
      "unrealizedQuote": "0.006121180030488503",
      "unrealizedUsd": 4.26,
      "valueQuote": "0.03007430236",
      "valueUsd": 20.93
    },
    {
      "address": "0x481f5963bf10cba972d52f138740155b2cda7059",
      "avgPrice": "0.000000005081365879",
      "balance": null,
      "balanceAtGrad": "10000000",
      "costQuote": "0.050813658792785355",
      "graduatedTs": 1793439135,
      "lastTradeTs": 1793436200,
      "logoThumbUrl": "/thumbs/0x481f5963bf10cba972d52f138740155b2cda7059.webp?v=cca9f7d4",
      "logoUrl": "https://cdn.gang.fun/ipfs/bafkreiglx6jn5gugk3atdsgaxzsapjb2h65r445dmbc6hurrelcc7ocsh4",
      "name": "狙姬",
      "quoteSymbol": "BNB",
      "quoteUsd": 695.99,
      "realizedQuote": "0",
      "realizedUsd": 0,
      "status": "graduated",
      "symbol": "狙姬",
      "track": "v3",
      "unrealizedUsd": null,
      "valueUsd": null
    }
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- gang: https://openany.si/market/apis/gang/gang-tokens-the-agent-still-holds-per-its-curve-sale-trades-with-cost-value-and-pnl/?offering=cc5af918-021a-4a2c-9f55-da3ce38324e1

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
