Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotSupported = errors.New("unsupported asset type") ErrNotEnabled = errors.New("asset type not enabled") ErrInvalidAsset = errors.New("asset is invalid") )
Public errors related to assets
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item uint32
Item stores the asset type
const ( Empty Item = iota Spot Margin CrossMargin MarginFunding Index Binary // Futures asset consts must come below this comment for method `IsFutures` Futures PerpetualContract PerpetualSwap DeliveryFutures UpsideProfitContract DownsideProfitContract CoinMarginedFutures USDTMarginedFutures USDCMarginedFutures FutureCombo LinearContract // Options asset consts must come below this comment for method `IsOptions` Options OptionCombo // All asset const must come immediately after all valid assets for method `IsValid` All )
Supported Assets
func (Item) MarshalJSON ¶
MarshalJSON conforms type to the marshaller interface
func (*Item) UnmarshalJSON ¶
UnmarshalJSON conforms type to the umarshaler interface
Click to show internal directories.
Click to hide internal directories.