Get Historical Fills
Changed onEndpoint for getting all historical fills for the member. A fill is when a trade you have is matched. API keys restricted to a subaccount return only that subaccount's fills. If supplied, subaccount must match the key's restriction. Registered partners may also use a user OAuth access token with the explicitly granted read::compliance_partner scope.
Request
- Base URLhttps://external-api.kalshi.com/trade-api/v2
- URLhttps://external-api.kalshi.com/trade-api/v2/historical/fills
- Auth
- API key in header KALSHI-ACCESS-KEY and API key in header KALSHI-ACCESS-SIGNATURE and API key in header KALSHI-ACCESS-TIMESTAMP
- or HTTP bearer
Query parameters
Filter by market ticker
Filter items after this Unix timestamp
Filter items before this Unix timestamp
Number of results per page. Defaults to 100.
Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
Subaccount number (0 for primary, 1-63 for subaccounts). If omitted, defaults to all subaccounts.
Response
Fills retrieved successfully
Example response
{
"fills": [
{
"count_fp": "10.00",
"yes_price_dollars": "0.5600",
"no_price_dollars": "0.5600",
"fee_cost": "0.5600"
}
]
}Changes
- warning
for the
queryrequest parametersubaccount, the min was set to0.00
- warning
- info
added the new optional
queryrequest parametersubaccount
- info