GET
/
{walletId}
/
trading
/
{orderId}
curl --request GET \
  --url https://gateway.finhub.cloud/wallet/{walletId}/trading/{orderId} \
  --header 'Authorization: Bearer <token>' \
  --header 'tenantId: <tenantid>'
{
  "id": "<string>",
  "volume": "<string>",
  "price": "<string>",
  "status": "created",
  "OrderType": "buy",
  "orderSide": "market",
  "pair": "<string>",
  "volumeExecuted": "<string>",
  "averagePrice": "<string>",
  "openedAt": "2023-11-07T05:31:56Z",
  "closedAt": "2023-11-07T05:31:56Z",
  "totalCost": "<string>",
  "fee": "<string>",
  "trades": [
    {
      "id": "<string>",
      "executedAt": "2023-11-07T05:31:56Z",
      "type": "buy",
      "side": "market",
      "pair": "<string>",
      "price": "<string>",
      "volume": "<string>",
      "total": "<string>"
    }
  ]
}

Authorizations

Authorization
string
headerrequired

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

tenantId
string
required

Path Parameters

walletId
string
required
orderId
string
required

Response

200 - application/json
id
string
required
volume
string
required
price
string
required
status
enum<string>
required
Available options:
created,
validated,
sentToExchange,
pending,
confirmedByAdmin,
waitingForLimit,
placed,
partialFilled,
closed,
rejected,
duplicated,
customerDenied,
limitReached
OrderType
enum<string>
required
Available options:
buy,
sell,
deposit,
withdraw,
transfer,
suspend,
reverse
orderSide
enum<string>
required
Available options:
market,
limit
pair
string
required
volumeExecuted
string
required
averagePrice
string
required
openedAt
string
required
closedAt
string
required
totalCost
string
required
fee
string
required
trades
object[]
required