Gravv docs
Docs Agent Sign in Get API keys

Get an order

Returns one order. pending covers both a debit in progress and a debit that landed and is waiting to settle. An unknown order returns a 400.

GEThttps://api.gravv.xyz/v1/fx/orders/{order_id}

Path Parameters

The order_id returned when the order was created

Responses

Status Description
200 The order
400 The request failed. Every FX error is a 400, including not-found and outages. Read error.

200 response

An order. The response leaves out empty fields.

An order made with an API key starts as pending, and Gravv debits its source at once. It then becomes completed, or cancelled if the debit fails. waiting_approval is for orders made in the Dashboard.

Possible values: waiting_approval, pending, completed, rejected, cancelled

The amount sold

The amount bought

Possible values: internal_account, internal_crypto_wallet

Possible values: internal_account, internal_crypto_wallet, external_account

Possible values: market

Which rate table priced the order

Only on orders made through the trade desk

400 response

What went wrong. FX errors carry no code.

{
"data": null,
"error": "order not found"
}

Authorization

  • ApiKeyAuth
Was this page helpful?
ESC