Documentation ¶
Index ¶
- Variables
- func ConvertDecToStandard(unit types.Unit, dec sdk.Dec) sdk.Dec
- func GetOrderTypeFromStr(str string) (types.OrderType, error)
- func GetPositionDirectionFromStr(str string) (types.PositionDirection, error)
- func GetPositionEffectFromStr(str string) (types.PositionEffect, error)
- func GetPriceAssetString(pairString PairString) (string, string)
- type ContractAddress
- type PairString
Constants ¶
This section is empty.
Variables ¶
View Source
var OppositePositionDirection = map[types.PositionDirection]types.PositionDirection{ types.PositionDirection_LONG: types.PositionDirection_SHORT, types.PositionDirection_SHORT: types.PositionDirection_LONG, }
Functions ¶
func GetPositionDirectionFromStr ¶
func GetPositionDirectionFromStr(str string) (types.PositionDirection, error)
func GetPositionEffectFromStr ¶
func GetPositionEffectFromStr(str string) (types.PositionEffect, error)
func GetPriceAssetString ¶
func GetPriceAssetString(pairString PairString) (string, string)
Types ¶
type ContractAddress ¶
type ContractAddress string
type PairString ¶
type PairString string
func GetPairString ¶
func GetPairString(pair *types.Pair) PairString
Click to show internal directories.
Click to hide internal directories.