cli

package
v0.21.0-rc.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 AddMarginCmd() *cobra.Command

func AddMarketGenesisCmd

func AddMarketGenesisCmd(defaultNodeHome string) *cobra.Command

AddMarketGenesisCmd returns add-market-genesis

func ClosePositionCmd

func ClosePositionCmd() *cobra.Command

TODO: how is a position idenitfiied? by pair? by id?

func CmdQueryMarkets

func CmdQueryMarkets() *cobra.Command

func CmdQueryModuleAccounts

func CmdQueryModuleAccounts() *cobra.Command

func CmdQueryPosition

func CmdQueryPosition() *cobra.Command

sample token-pair: btc:nusd

func CmdQueryPositions

func CmdQueryPositions() *cobra.Command

func DonateToEcosystemFundCmd

func DonateToEcosystemFundCmd() *cobra.Command

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the cli query commands for this module

func GetTxCmd

func GetTxCmd() *cobra.Command

func MultiLiquidateCmd

func MultiLiquidateCmd() *cobra.Command

func OpenPositionCmd

func OpenPositionCmd() *cobra.Command

func RemoveMarginCmd

func RemoveMarginCmd() *cobra.Command

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL