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 = 0 Spot Item = 1 << iota Margin CrossMargin MarginFunding Index Binary PerpetualContract PerpetualSwap Futures DeliveryFutures UpsideProfitContract DownsideProfitContract CoinMarginedFutures USDTMarginedFutures USDCMarginedFutures Options OptionCombo FutureCombo LinearContract // Added to represent a USDT and USDC based linear derivatives(futures/perpetual) assets in Bybit V5 All )
Const vars for asset package
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.