t() :: %ExBitmex.Position{
account: pos_integer(),
avg_cost_price: float() | nil,
avg_entry_price: float() | nil,
bankrupt_price: float() | nil,
break_even_price: float() | nil,
commission: float(),
cross_margin: boolean(),
currency: String.t(),
current_comm: float(),
current_cost: float(),
current_qty: non_neg_integer(),
current_timestamp: String.t(),
deleverage_percentile: nil | term(),
exec_buy_cost: float(),
exec_buy_qty: non_neg_integer(),
exec_comm: float(),
exec_cost: float(),
exec_qty: non_neg_integer(),
exec_sell_cost: float(),
exec_sell_qty: non_neg_integer(),
foreign_notional: float(),
gross_exec_cost: float(),
gross_open_cost: float(),
gross_open_premium: float(),
home_notional: float(),
indicative_tax: float(),
indicative_tax_rate: float(),
init_margin: float(),
init_margin_req: float(),
is_open: boolean(),
last_price: float() | nil,
last_value: float(),
leverage: pos_integer(),
liquidation_price: float() | nil,
long_bankrupt: float(),
maint_margin: float(),
maint_margin_req: float(),
margin_call_price: float() | nil,
mark_price: float() | nil,
mark_value: float(),
open_order_buy_cost: float(),
open_order_buy_premium: float(),
open_order_buy_qty: non_neg_integer(),
open_order_sell_cost: float(),
open_order_sell_premium: float(),
open_order_sell_qty: non_neg_integer(),
opening_comm: integer(),
opening_cost: float(),
opening_qty: non_neg_integer(),
opening_timestamp: String.t(),
pos_allowance: float(),
pos_comm: float(),
pos_cost: float(),
pos_cost2: float(),
pos_cross: float(),
pos_init: float(),
pos_loss: float(),
pos_maint: float(),
pos_margin: float(),
pos_state: String.t(),
prev_close_price: float(),
prev_realised_pnl: float(),
prev_unrealised_pnl: float(),
quote_currency: String.t(),
realised_cost: float(),
realised_gross_pnl: float(),
realised_pnl: float(),
realised_tax: float(),
rebalanced_pnl: integer(),
risk_limit: integer(),
risk_value: float(),
session_margin: float(),
short_bankrupt: float(),
simple_cost: float() | nil,
simple_pnl: float() | nil,
simple_pnl_pcnt: float() | nil,
simple_qty: pos_integer() | nil,
simple_value: float() | nil,
symbol: String.t(),
target_excess_margin: float(),
tax_base: float(),
taxable_margin: float(),
timestamp: String.t(),
underlying: String.t(),
unrealised_cost: float(),
unrealised_gross_pnl: float(),
unrealised_pnl: float(),
unrealised_pnl_pcnt: float(),
unrealised_roe_pcnt: float(),
unrealised_tax: float(),
var_margin: float()
}