Skip to content
Stove Website

Query Maker Positions ​

Endpoint Information ​

Endpoint: GET /api/v1/positions

Description: Query held stock token information

Authentication: API Key + Signature. See Authorization

Note: This is a Maker API endpoint. The X-Maker-Addr header is required and must be included in both the request headers and signature string.

Query Parameters ​

ParameterTypeRequiredDescription
chain_idintNoChain ID filter (queries all chains if not specified)
tickerstringNoStock symbol (exact or fuzzy match)
ticker_likebooleanNoEnable fuzzy search, default false
pageintNoPage number, default 1
page_sizeintNoPage size, default 20, max 100

Response Parameters ​

FieldTypeDescription
totalintTotal records
pageintCurrent page
page_sizeintPage size
total_pagesintTotal pages
positionsarrayPosition list

Position Object Field ​

FieldTypeDescription
positions[].tickerstringStock symbol
positions[].exchangeintMarket code enum index. See Exchange
positions[].chain_idintChain ID
positions[].token_addressstringToken address
positions[].balancestringPosition balance
positions[].locked_balancestringLocked position balance
positions[].available_balancestringAvailable position balance
positions[].avg_pricestringaverage transaction price

Request Example ​

bash
# Query positions on all chains
curl -X GET "{API_BASE_URL}/api/v1/positions?page=1&page_size=20" \
     -H "X-API-Key: YOUR_API_KEY" \
     -H "X-Maker-Addr: YOUR_MAKER_ADDRESS" \
     -H "X-API-Timestamp: 1715100000000" \
     -H "X-API-Signature: GENERATED_SIGNATURE" \
     -H "Content-Type: application/json"

# Query positions on specific chain (BSC mainnet)
curl -X GET "{API_BASE_URL}/api/v1/positions?chain_id=56&page=1&page_size=20" \
     -H "X-API-Key: YOUR_API_KEY" \
     -H "X-Maker-Addr: YOUR_MAKER_ADDRESS" \
     -H "X-API-Timestamp: 1715100000000" \
     -H "X-API-Signature: GENERATED_SIGNATURE" \
     -H "Content-Type: application/json"

# Fuzzy search for specific stock
curl -X GET "{API_BASE_URL}/api/v1/positions?ticker_like=true&ticker=AAPLs" \
     -H "X-API-Key: YOUR_API_KEY" \
     -H "X-Maker-Addr: YOUR_MAKER_ADDRESS" \
     -H "X-API-Timestamp: 1715100000000" \
     -H "X-API-Signature: GENERATED_SIGNATURE" \
     -H "Content-Type: application/json"

Response Example ​

json
{
    "code": 0,
    "data": {
        "positions": [
            {
                "ticker": "AAPLs",
                "exchange": 0,
                "chain_id": 56,
                "token_address": "0xc48eec40...",
                "balance": "6",
                "locked_balance": "0",
                "available_balance": "6",
                "avg_price": "256598079145728583333"
            },
            {
                "ticker": "AMZN",
                "exchange": 0,
                "chain_id": 56,
                "token_address": "0xfd5d300742...",
                "balance": "12",
                "locked_balance": "0",
                "available_balance": "12",
                "avg_price": "233225286432160750000"
            }
        ],
        "total": 2,
        "page": 1,
        "page_size": 20,
        "total_pages": 1
    }
}