mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
types: add FuturesUserAsset
This commit is contained in:
parent
c507722745
commit
cc13ae2aab
|
@ -28,6 +28,19 @@ func (s *FuturesSettings) UseIsolatedFutures(symbol string) {
|
||||||
s.IsolatedFuturesSymbol = symbol
|
s.IsolatedFuturesSymbol = symbol
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FuturesUserAsset define cross/isolated futures account asset
|
||||||
|
type FuturesUserAsset struct {
|
||||||
|
Asset string `json:"asset"`
|
||||||
|
InitialMargin fixedpoint.Value `json:"initialMargin"`
|
||||||
|
MaintMargin fixedpoint.Value `json:"maintMargin"`
|
||||||
|
MarginBalance fixedpoint.Value `json:"marginBalance"`
|
||||||
|
MaxWithdrawAmount fixedpoint.Value `json:"maxWithdrawAmount"`
|
||||||
|
OpenOrderInitialMargin fixedpoint.Value `json:"openOrderInitialMargin"`
|
||||||
|
PositionInitialMargin fixedpoint.Value `json:"positionInitialMargin"`
|
||||||
|
UnrealizedProfit fixedpoint.Value `json:"unrealizedProfit"`
|
||||||
|
WalletBalance fixedpoint.Value `json:"walletBalance"`
|
||||||
|
}
|
||||||
|
|
||||||
type MarginExchange interface {
|
type MarginExchange interface {
|
||||||
UseMargin()
|
UseMargin()
|
||||||
UseIsolatedMargin(symbol string)
|
UseIsolatedMargin(symbol string)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user