Reconcile Spot Trade History
A 3-step recipe with Kraken. We can help you get access.
Recipe · 3 steps
Reconcile Spot Trade History
with Kraken
Reconcile spot trades against ledger entries for a period.
- Pull recent trade history for the account. Private Spot endpoints are signed and accept application/x-www-form-urlencoded bodies.
- Query detailed information for the supplied trade ids to inspect fees, prices, and the orders that produced them.
- Read ledger entries over the same window so trades can be matched to the cash and fee movements they generated.
What you'll need to have ready
- nonce: Ever-increasing nonce for the signed request.
- otp: One-time password if two-factor is enabled on the API key.
- txid: Comma-delimited trade ids to query in detail (max 20).
- asset: Asset to scope the ledger query to (e.g. XBT).
- start: Unix timestamp lower bound for the history and ledger windows.
- end: Unix timestamp upper bound for the history and ledger windows.
For your developer
Arazzo workflow kraken:reconcile-trade-history, 3 operations: getTradesHistory → queryTradesInfo → getLedgersInfo. Specs on APIs.io.