Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotSupported is an error for an unsupported asset type ErrNotSupported = errors.New("unsupported asset type") // ErrNotEnabled is an error for an asset not enabled ErrNotEnabled = errors.New("asset type not enabled") // ErrInvalidAsset is returned when the assist isn't valid ErrInvalidAsset = errors.New("asset is invalid") )
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item uint32
Item stores the asset type
const ( Empty Item = 0 Spot Item = 1 << iota Margin CrossMargin MarginFunding Index Binary PerpetualContract PerpetualSwap Futures DeliveryFutures UpsideProfitContract DownsideProfitContract CoinMarginedFutures USDTMarginedFutures USDCMarginedFutures Options // Added to represent a USDT and USDC based linear derivatives(futures/perpetual) assets in Bybit V5. LinearContract )
Const vars for asset package
func (Item) MarshalJSON ¶
MarshalJSON comforms type to the marshaller interface
func (*Item) UnmarshalJSON ¶
UnmarshalJSON comforms type to the umarshaler interface
Click to show internal directories.
Click to hide internal directories.