This will return the current order book as two arrays (bids / asks).
Note
The quantities and prices returned are returned as strings rather than numbers. The numbers returned are exact, not rounded, and it can be dangerous to treat them as floating point numbers.
GETv1/book/BTCUSD
curl --request GET \
--url https://api.gemini.com/v1/book/BTCUSD
Path Parameters
symbolstring·required
Trading pair symbol BTCUSD, etc. See symbols and minimums.
Query Parameters
limit_bidsnumber
Limit the number of bid (offers to buy) price levels returned. Default is 50. May be 0 to return the full order book on this side.
limit_asksnumber
Limit the number of ask (offers to sell) price levels returned. Default is 50. May be 0 to return the full order book on this side.
Responses
The response will be two arrays. The bids and the asks are grouped by price, so each entry may represent multiple orders at that price. Each element of the array will be a JSON object.
bidsarray
The bid price levels currently on the book. These are offers to buy at a given price.
bids[].pricestring (decimal)
The price
bids[].amountstring (decimal)
The total quantity remaining at the price
bids[].timestampstring
**DO NOT USE** - this field is included for compatibility reasons only and is just populated with a dummy value.
asksarray
The ask price levels currently on the book. These are offers to sell at a given price.
asks[].pricestring (decimal)
The price
asks[].amountstring (decimal)
The total quantity remaining at the price
asks[].timestampstring
**DO NOT USE** - this field is included for compatibility reasons only and is just populated with a dummy value.