Documentation ¶
Index ¶
- Constants
- func AddMarginCmd() *cobra.Command
- func AddMarketGenesisCmd(defaultNodeHome string) *cobra.Command
- func ClosePositionCmd() *cobra.Command
- func CmdQueryMarkets() *cobra.Command
- func CmdQueryModuleAccounts() *cobra.Command
- func CmdQueryPosition() *cobra.Command
- func CmdQueryPositions() *cobra.Command
- func DonateToEcosystemFundCmd() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func GetTxCmd() *cobra.Command
- func MultiLiquidateCmd() *cobra.Command
- func OpenPositionCmd() *cobra.Command
- func RemoveMarginCmd() *cobra.Command
Constants ¶
View Source
const ( FlagPair = "pair" FlagSqrtDepth = "sqrt-depth" FlagPriceMultiplier = "price-multiplier" FlagMaintenenceMarginRatio = "mmr" FlagMaxLeverage = "max-leverage" )
Variables ¶
This section is empty.
Functions ¶
func AddMarginCmd ¶
func AddMarketGenesisCmd ¶
AddMarketGenesisCmd returns add-market-genesis
func ClosePositionCmd ¶
TODO: how is a position idenitfiied? by pair? by id?
func CmdQueryMarkets ¶
func CmdQueryModuleAccounts ¶
func CmdQueryPositions ¶
func GetQueryCmd ¶
GetQueryCmd returns the cli query commands for this module
func MultiLiquidateCmd ¶
func OpenPositionCmd ¶
func RemoveMarginCmd ¶
RemoveMarginCmd is a CLI command that removes margin from a position, realizing any outstanding funding payments and decreasing the margin ratio.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.