Documentation
¶
Index ¶
Constants ¶
View Source
const ( MARKET_AAPL_MARKER = "auto:aapl" MARKET_AAVEDAI_MARKER = "auto:aavedai" MARKET_BTCUSD_MARKER = "auto:btcusd" MARKET_ETHBTC_MARKER = "auto:ethbtc" MARKET_TSLA_MARKER = "auto:tsla" MARKET_UNIDAI_MARKER = "auto:unidai" MARKET_ETHDAI_MARKER = "auto:ethdai" )
View Source
const CoinBaseOraclePubKey = "0xfCEAdAFab14d46e20144F48824d0C09B1a03F2BC"
The CoinBase Oracle data
View Source
const OpsManagedMetadata = "managed:vega/ops"
View Source
const OracleAll = "*"
Variables ¶
View Source
var MarketCmd = &cobra.Command{
Use: "market",
Short: "Use template to quickly get what you need",
Long: `This section contains multiple built-up templates that you can use to quickly achive what you want.
If you see that the command you created might be useful, the move it elsewhere, and leave the template in an original state.`,
}
Root Command for Market
Functions ¶
func RunPropose ¶
func RunPropose(args ProposeArgs) error
func RunProvideLP ¶
func RunProvideLP(args ProvideLPArgs) error
func RunTerminate ¶ added in v0.73.9
func RunTerminate(args *TerminateArgs) error
Types ¶
type MarketArgs ¶
type MarketFlags ¶ added in v0.73.9
type MarketFlags struct {
TotalMarkets int
AAPL bool
AAVEDAI bool
BTCUSD bool
ETHBTC bool
TSLA bool
UNIDAI bool
ETHDAI bool
CommunityLinkUSD bool
CommunityETHUSD bool
CommunityBTCUSD bool
PerpetualBTCUSD bool
PerpetualDAIUSD bool
PerpetualEURUSD bool
PerpetualLINKUSD bool
PerpetualETHUSD bool
IncentiveBTCUSD bool
MainnetBTCUSDT bool
MainnetDOGEUSDT bool
MainnetETHUSDT bool
MainnetLINKUSDT bool
}
type ProposeArgs ¶
type ProposeArgs struct {
*MarketArgs
ProposeAAPL bool
ProposeAAVEDAI bool
ProposeBTCUSD bool
ProposeETHBTC bool
ProposeTSLA bool
ProposeUNIDAI bool
ProposeETHDAI bool
ProposePerpetualBTCUSD bool
ProposePerpetualLINKUSD bool
ProposePerpetualDAIUSD bool
ProposePerpetualEURUSD bool
ProposePerpetualETHUSD bool
ProposeAll bool
ProposeCommunity bool
OraclePubKey string
FakeAsset bool
ERC20Asset bool
}
type ProvideLPArgs ¶
type ProvideLPArgs struct {
*MarketArgs
}
type TerminateArgs ¶ added in v0.73.9
type TerminateArgs struct {
AllMarkets bool
ManagedMarkets bool
MarketIds []string
*MarketArgs
}
Click to show internal directories.
Click to hide internal directories.