Skip to main content
GET
Retrieve Trade

인증

Authorization
string
header
필수

An Account API key, an App API key, an account access token, an account-scoped user token, or a user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.

Scopes

crypto_wallet:trade:read
crypto_wallet:trade
crypto_wallet:manage

헤더

Api-Version-Date
string

Pins the request to a dated API version.

예시:

"2026-11-17"

경로 매개변수

id
string
필수

Trade ID, prefixed tint_.

응답

trade retrieved

account_id
string | null
필수

The account that owns the trading wallet, prefixed biz_. null when a user owns it.

예시:

"biz_xxxxxxxxxxxxxx"

amount
string | null
필수

The USDT0 that a deposit, a spot buy, or a perpetual order short of trading balance, sends from the wallet, or the USDC that a withdraw sends back, in native units, as a decimal string. A withdraw of all shows what it sent once it finishes. null otherwise.

예시:

"25"

average_price
string | null
필수

The average fill price of the order, in USD, as a decimal string. For spot, the price the swap was quoted at. null when it is not known.

예시:

null

client_order_id
string | null
필수

The caller's own ID for the trade, unique for the account. null when none was sent.

예시:

null

completed_at
string | null
필수

When the trade ended as completed or failed, as an ISO 8601 timestamp. null before that.

예시:

null

created_at
string
필수

When the trade was created, as an ISO 8601 timestamp.

예시:

"2026-01-01T12:00:00.000Z"

external_order_id
string | null
필수

ID Whop sends to the exchange with this trade's order, so the exchange's order updates can be matched to the trade. On Hyperliquid, the order's cloid reported in orderUpdates, a 0x-prefixed 32-character hex string. Not the caller's client_order_id. null for a deposit or withdraw.

예시:

"0x63cabad10f072c65ad84526e0c33081b"

failure_code
enum<string> | null
필수

Why the trade failed, or null.

사용 가능한 옵션:
market_unavailable,
leverage_too_high,
amount_too_small,
isolated_position_open,
trading_paused,
funding_failed,
margin_unavailable,
builder_fee_unapproved,
leverage_rejected,
leverage_unconfirmed,
order_rejected,
close_rejected,
return_failed,
withdraw_failed,
null
예시:

"market_unavailable"

filled_size
string | null
필수

The size the order filled, in units of the market, as a decimal string. For a spot buy, the amount the swap was quoted to deliver. null until it fills.

예시:

null

funds_location
enum<string> | null
필수

Where the money is when the trade did not complete as asked: wallet, trading_account, or unknown while a person checks it. null otherwise.

사용 가능한 옵션:
wallet,
trading_account,
unknown,
null
예시:

"wallet"

id
string
필수

Trade ID, prefixed tint_.

예시:

"tint_xxxxxxxxxxxxxx"

instrument_type
enum<string> | null
필수

perpetual or spot for an order, perpetual for a close. null for a deposit or withdraw.

사용 가능한 옵션:
perpetual,
spot,
null
예시:

"perpetual"

leverage
integer | null
필수

The cross leverage set before an opening perpetual order. null for a spot order, close, deposit, withdraw or reduce-only order.

예시:

10

market
string | null
필수

The market, for example BTC for a perpetual or XAUT for spot. null for a deposit or withdraw.

예시:

"BTC"

metadata
object
필수

Free-form string-to-string annotations stored on the trade.

예시:
object
enum<string>
필수
사용 가능한 옵션:
trade
예시:

"trade"

order_type
enum<string> | null
필수

market, limit, take_profit or stop_loss for an order. null otherwise.

사용 가능한 옵션:
market,
limit,
take_profit,
stop_loss,
null
예시:

"market"

parent_id
string | null
필수

For a take-profit or stop-loss sent with an order, that order's trade, prefixed tint_. null otherwise.

예시:

null

price
object | null
필수

The limit price of the order in USD. A market order's price is the mid price moved by slippage_bps; a take-profit or stop-loss's is the worst price its market order may fill at once triggered. null for other types.

reduce_only
boolean | null
필수

Whether the order can only reduce a position. null for other types.

예시:

null

side
enum<string> | null
필수

buy or sell for an order. null otherwise.

사용 가능한 옵션:
buy,
sell,
null
예시:

"buy"

size
string | null
필수

The order size in units of the market, as a decimal string. null for other types.

예시:

null

status
enum<string>
필수

pending until the trade starts. processing while it runs, also while an order that did not fill sends the money it bridged in back to the wallet. completed when it did what was asked. failed when it did not; funds_location says where the money is. in_review when the outcome is unknown and a person checks it.

사용 가능한 옵션:
pending,
processing,
in_review,
completed,
failed
예시:

"pending"

status_detail
enum<string> | null
필수

partial_fill when the order filled only part of its size. null otherwise.

사용 가능한 옵션:
partial_fill,
null
예시:

"partial_fill"

step
enum<string> | null
필수

What a live trade is doing now: depositing while the wallet's USDT0 is being sent to the bridge, landing once sent and until it reaches the trading balance, placing while the order or close is with the venue, withdrawing while USDC heads back to the wallet, returning while money an unfilled order bridged in goes back. A spot order is quoting while the swap is priced, swapping while it runs onchain, and crediting until the new balance shows in the wallet. null once the trade is no longer pending or processing.

사용 가능한 옵션:
depositing,
landing,
placing,
withdrawing,
returning,
quoting,
swapping,
crediting,
null
예시:

"placing"

trigger_price
object | null
필수

The price in USD at which a take-profit or stop-loss sends its market order. null for other orders and types.

type
enum<string>
필수

order places one order: a perpetual order trades from the trading balance, a spot order swaps between USDT0 and the asset in the wallet. deposit bridges USDT0 from the wallet to the trading balance. withdraw sends USDC from the trading balance back to the wallet. close closes the whole position in one market with a market reduce-only order; when the account is then flat, a withdraw trade sends the trading balance back to the wallet.

사용 가능한 옵션:
close,
order,
deposit,
withdraw
예시:

"order"

updated_at
string
필수

When the trade last changed, as an ISO 8601 timestamp.

예시:

"2026-01-01T12:00:00.000Z"

user_id
string | null
필수

The user who owns the trading wallet, prefixed user_. null when an account owns it.

예시:

null