Get Instant Quote
Roles
The API key you use to access this endpoint must have the Trader role assigned. See Roles for more information.
The OAuth scope must have orders:create
assigned to access this endpoint. See OAuth Scopes for more information.
Headers
X-GEMINI-APIKEY
string · requiredYour API key
X-GEMINI-SIGNATURE
string · requiredHEX-encoded HMAC-SHA384 of payload signed with API secret
X-GEMINI-PAYLOAD
string · requiredBase64-encoded JSON payload
Content-Type
stringDefault: text/plainContent-Length
stringDefault: 0Cache-Control
stringDefault: no-cache
Request Body
request
string · requiredThe literal string "/v1/instant/quote/"
side
string · enum · required"buy" or "sell"
Enum values:buysellsymbol
string · requiredThe symbol for the order. Instant includes order books denominated in a supported currency, as
CCY2
totalSpend
string · requiredQuoted decimal amount to spend on the order. Must comply with stated minimums. The
totalSpend
will beCCY2
inbuy
orders andCCY1
insell
orders.
paymentMethodUuid
stringuuid provided as
bankId
in Payment Methods APIpaymentMethodType
stringMethod used to specify payment method in
buy
order. Can be "AccountBalancePaymentType" to use funds available in USD balance held on Gemini, "BankAccountType" to initial an ACH from a linked bank account, or "CardAccountType" to use a linked debit card to fund the purchase.account
stringRequired for Master API keys as described in Private API Invocation. The name of the account within the subaccount group. Specifies the account on which you intend to place the order. Only available for exchange accounts.
Responses
quoteId
integerUnique ID for the quote. This is used in the execution of the order
maxAgeMs
integerNumber of milliseconds until this quote price expires. Once expired, you will need to request a new quote
pair
stringThe symbol passed in the quote request
price
stringThe quoted price of the asset. This will not change when attempting execution
priceCurrency
stringThe currency in which the order is priced. Matches
CCY2
in the symbolside
string · enumEither "buy" or "sell"
Enum values:buysellquantity
stringThe quantity of the asset to be bought or sold
quantityCurrency
stringThe currency label for the
quantity
field. MatchesCCY1
in the symbolfee
stringThe fee quantity to be taken for the order upon execution
feeCurrency
stringThe currency label for the order
depositFee
stringThe deposit fee quantity. Will be applied if a debit card is used for the order. Will return 0 if there is no
depositFee
depositFeeCurrency
stringCurrency in which
depositFee
is takentotalSpend
stringTotal quantity to spend for the order. Will be the sum inclusive of all fees and amount to be traded.
totalSpendCurrency
stringCurrency of the
totalSpend
to be spent on the order
Execute Instant Order
Roles
The API key you use to access this endpoint must have the Trader role assigned. See Roles for more information.
The OAuth scope must have orders:create
assigned to access this endpoint. See OAuth Scopes for more information.
Headers
X-GEMINI-APIKEY
string · requiredYour API key
X-GEMINI-SIGNATURE
string · requiredHEX-encoded HMAC-SHA384 of payload signed with API secret
X-GEMINI-PAYLOAD
string · requiredBase64-encoded JSON payload
Content-Type
stringDefault: text/plainContent-Length
stringDefault: 0Cache-Control
stringDefault: no-cache
Request Body
request
string · requiredThe literal string "/v1/instant/execute"
symbol
string · requiredThe symbol for the order.
side
string · enum · required"buy" or "sell"
Enum values:buysellquantity
string · requiredThe quantity of the asset bought or sold. quantity must match quantity returned in the quote
fee
string · requiredThe fee for the order. fee must match fee returned in the quote
quoteId
integer · requiredUnique ID for the quote. quoteId must match quoteId returned in the quote
account
stringRequired for Master API keys as described in Private API Invocation. The name of the account within the subaccount group. Specifies the account on which you intend to place the order. Only available for exchange accounts.
Responses
orderId
integerThe ID for the executed order
pair
stringThe symbol for the order.
price
stringThe price at which the order was executed
priceCurrency
stringThe currency in which the order is priced. Matches
CCY2
in the symbolside
stringEither "buy" or "sell"
quantity
stringThe quantity of the asset bought or sold
quantityCurrency
stringThe currency label for the
quantity
field.totalSpend
stringTotal quantity to spend for the order. Will be the sum inclusive of all fees and amount to be traded.
totalSpendCurrency
stringCurrency of the
totalSpend
to be spent on the orderfee
stringThe fee quantity charged for the order
feeCurrency
stringThe currency label for the fee.
depositFee
stringThe deposit fee quantity. Will be applied if a debit card is used for the order. Will return 0 if there is no
depositFee
depositFeeCurrency
stringCurrency in which
depositFee
is taken