Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountSummary ¶
type AccountSummary struct { AvailableFunds float64 `json:"available_funds"` AvailableWithdrawalFunds float64 `json:"available_withdrawal_funds"` Balance float64 `json:"balance"` Currency string `json:"currency"` DeltaTotal float64 `json:"delta_total"` DepositAddress string `json:"deposit_address"` Email string `json:"email"` Equity float64 `json:"equity"` FuturesPl float64 `json:"futures_pl"` FuturesSessionRpl float64 `json:"futures_session_rpl"` FuturesSessionUpl float64 `json:"futures_session_upl"` ID int `json:"id"` InitialMargin float64 `json:"initial_margin"` MaintenanceMargin float64 `json:"maintenance_margin"` MarginBalance float64 `json:"margin_balance"` OptionsDelta float64 `json:"options_delta"` OptionsGamma float64 `json:"options_gamma"` OptionsPl float64 `json:"options_pl"` OptionsSessionRpl float64 `json:"options_session_rpl"` OptionsSessionUpl float64 `json:"options_session_upl"` OptionsTheta float64 `json:"options_theta"` OptionsVega float64 `json:"options_vega"` PortfolioMarginingEnabled bool `json:"portfolio_margining_enabled"` SessionFunding float64 `json:"session_funding"` SessionRpl float64 `json:"session_rpl"` SessionUpl float64 `json:"session_upl"` SystemName string `json:"system_name"` TfaEnabled bool `json:"tfa_enabled"` TotalPl float64 `json:"total_pl"` Type string `json:"type"` Username string `json:"username"` Fees []Fee `json:"fees"` }
type GetAccountSummaryParams ¶
type GetPositionsParams ¶
type GetTransactionLogParams ¶
type GetTransactionLogParams struct { Currency string `json:"currency"` StartTimestamp int64 `json:"start_timestamp,omitempty"` EndTimestamp int64 `json:"end_timestamp,omitempty"` Query string `json:"query,omitempty"` Count int64 `json:"count,omitempty"` Continuation int64 `json:"continuation,omitempty"` }
type Position ¶
type Position struct { AveragePrice float64 `json:"average_price"` Delta float64 `json:"delta"` Gamma float64 `json:"gamma"` Vega float64 `json:"vega"` Theta float64 `json:"theta"` Direction string `json:"direction"` EstimatedLiquidationPrice float64 `json:"estimated_liquidation_price"` FloatingProfitLoss float64 `json:"floating_profit_loss"` IndexPrice float64 `json:"index_price"` InitialMargin float64 `json:"initial_margin"` InstrumentName string `json:"instrument_name"` Kind string `json:"kind"` MaintenanceMargin float64 `json:"maintenance_margin"` MarkPrice float64 `json:"mark_price"` OpenOrdersMargin float64 `json:"open_orders_margin"` RealizedProfitLoss float64 `json:"realized_profit_loss"` SettlementPrice float64 `json:"settlement_price"` Size float64 `json:"size"` SizeCurrency float64 `json:"size_currency"` TotalProfitLoss float64 `json:"total_profit_loss"` }
type TransLog ¶
type TransLog struct { Amount float64 `json:"amount"` Balance float64 `json:"balance"` Cashflow float64 `json:"cashflow"` Change float64 `json:"change"` Commission float64 `json:"commission"` Currency string `json:"currency"` Equity float64 `json:"equity"` Id int64 `json:"id"` InstrumentName string `json:"instrument_name"` InterestPL float64 `json:"interest_pl"` MarkPrice float64 `json:"mark_price"` OrderId string `json:"order_id"` Position float64 `json:"position"` Price float64 `json:"price"` PriceCurrency string `json:"price_currency"` ProfitAsCashflow bool `json:"profit_as_cashflow"` SessionRPL float64 `json:"session_rpl"` SessionUPL float64 `json:"session_upl"` Side string `json:"side"` Timestamp int64 `json:"timestamp"` TotalInterestPL float64 `json:"total_interest_pl"` TradeId string `json:"trade_id"` Type string `json:"type"` UserId int64 `json:"user_id"` UserRole string `json:"user_role"` UserSeq int64 `json:"user_seq"` Username string `json:"username"` }
Click to show internal directories.
Click to hide internal directories.