Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Latest commit

 

History

History
28 lines (24 loc) · 2.61 KB

UserTrade.md

File metadata and controls

28 lines (24 loc) · 2.61 KB

UserTrade

Properties

Name Type Description Notes
direction str Trade direction of the taker
fee_currency str Currency, i.e `"BTC"`, `"ETH"`
order_id str Id of the user order (maker or taker), i.e. subscriber's order id that took part in the trade
timestamp int The timestamp of the trade
price float The price of the trade
iv float Option implied volatility for the price (Option only) [optional]
trade_id str Unique (per currency) trade identifier
fee float User's fee in units of the specified `fee_currency`
order_type str Order type: `"limit`, `"market"`, or `"liquidation"` [optional]
trade_seq int The sequence number of the trade within instrument
self_trade bool `true` if the trade is against own order. This can only happen when your account has self-trading enabled. Contact an administrator if you think you need that
state str order state, `"open"`, `"filled"`, `"rejected"`, `"cancelled"`, `"untriggered"` or `"archive"` (if order was archived)
label str User defined label (presented only when previously set for order by user) [optional]
index_price float Index Price at the moment of trade
amount float Trade amount. For perpetual and futures - in USD units, for options it is amount of corresponding cryptocurrency contracts, e.g., BTC or ETH.
instrument_name str Unique instrument identifier
tick_direction int Direction of the "tick" (`0` = Plus Tick, `1` = Zero-Plus Tick, `2` = Minus Tick, `3` = Zero-Minus Tick).
matching_id str Always `null`, except for a self-trade which is possible only if self-trading is switched on for the account (in that case this will be id of the maker order of the subscriber)
liquidity str Describes what was role of users order: `"M"` when it was maker order, `"T"` when it was taker order [optional]

[Back to Model list] [Back to API list] [Back to README]