Preflight and Place Spot Order
A 4-step recipe with Kraken. We can help you get access.
Recipe · 4 steps
Preflight and Place Spot Order
with Kraken
Verify the exchange is online and priced, place a spot order, and confirm it.
- Confirm the exchange is operational before trading. A status other than online (maintenance, cancel_only, post_only) is a signal to abort.
- Read the live ticker for the pair so the caller can price the order against the current best bid and ask.
- Submit the order. Private Spot endpoints are signed and accept application/x-www-form-urlencoded bodies; the nonce must increase on every call.
- Query the freshly created order by its transaction id to confirm it was accepted and read back its current status.
What you'll need to have ready
- nonce: Ever-increasing nonce (typically a millisecond timestamp) for the signed request.
- otp: One-time password if two-factor is enabled on the API key.
- pair: The asset pair to trade (e.g. XBTUSD).
- ordertype: Order type (market, limit, stop-loss, take-profit, etc.).
- type: Order direction, buy or sell.
- volume: Order volume in base-asset terms.
- price: Limit price; required for limit and stop order types.
For your developer
Arazzo workflow kraken:preflight-place-spot-order, 4 operations: getSystemStatus → getTickerInformation → addOrder → queryOrdersInfo. Specs on APIs.io.