1
Verify your account and create an API key
Open API keys and create a key with these scopes:
ORDER_READORDER_CREATEORDER_CANCEL
2
Store the key
Set the key in your shell so you do not paste it into source code:See Authentication for permission and storage guidance.
3
Read the market rules
Never hardcode a symbol’s precision. Fetch the market before constructing an order.For this market,
price and qty accept up to two decimal places. Send both values as strings.4
Inspect the order book
5
Place a limit order
id. A limit order can be OPEN, PARTIALLY_FILLED, or FILLED immediately, so always use the returned status.6
Check the order
Replace You can also request every open order with
ORDER_ID with the returned ID:GET /orders/open.7
Cancel any remaining quantity
Only cancel an order whose status is
OPEN or PARTIALLY_FILLED: