Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Position ¶
type Position struct {
// Average price of trades that built this position
// Required: true
AveragePrice float64
// Only for options, average price in USD
AveragePriceUsd float64
// Delta parameter
// Required: true
Delta float64
// direction
// Required: true
Direction models.Direction
// Only for futures, estimated liquidation price
EstimatedLiquidationPrice float64
// Floating profit or loss
// Required: true
FloatingProfitLoss float64
// Only for options, floating profit or loss in USD
FloatingProfitLossUsd float64
// Current index price
// Required: true
IndexPrice float64
// Initial margin
// Required: true
InitialMargin float64
// instrument name
// Required: true
InstrumentName models.InstrumentName
// kind
// Required: true
Kind models.Kind
// Maintenance margin
// Required: true
MaintenanceMargin float64
// Current mark price for position's instrument
// Required: true
MarkPrice float64
// Open orders margin
// Required: true
OpenOrdersMargin float64
// Realized profit or loss
// Required: true
RealizedProfitLoss float64
// Last settlement price for position's instrument 0 if instrument wasn't settled yet
// Required: true
SettlementPrice float64
// Position size for futures size in quote currency (e.g. USD), for options size is in base currency (e.g. BTC)
// Required: true
Size float64
// Only for futures, position size in base currency
SizeCurrency float64
// Profit or loss from position
// Required: true
TotalProfitLoss float64
}
Position is almost the same struct as in v3/models/position.go
Click to show internal directories.
Click to hide internal directories.