market

package
v0.75.8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SepoliaChainID    = 11155111
	GnosisChainID     = 100
	EthereumMainnetID = 1
)
View Source
const (
	IncentiveBTCUSD              = "auto:incentive_btc_usd"
	IncentiveBTCUSDOracleAddress = "0x1b44F3514812d835EB1BDB0acB33d3fA3351Ee43"
	IncentiveVegaAssetId         = "4454ab1ec9d9710b2f8b0f4e24a379c409ef3767e5b2ec90c451873a71fedfa0"
)
View Source
const (
	PerpetualBTCUSD              = "auto:perpetual_btc_usd"
	PerpetualBTCUSDOracleAddress = "0x1b44F3514812d835EB1BDB0acB33d3fA3351Ee43"
)
View Source
const (
	PerpetualBTCUSDGnosis              = "auto:perpetual_btc_usd_gnosis"
	PerpetualBTCUSDOracleGnosisAddress = "0xf72475a8778E2e4b953f99a85f21a2feADbF77B9"
)
View Source
const (
	PerpetualDAIUSD              = "auto:perpetual_dai_usd"
	PerpetualDAIUSDOracleAddress = "0x14866185B1962B63C3Ea9E03Bc1da838bab34C19"
)
View Source
const (
	PerpetualETHUSD              = "auto:perpetual_eth_usd"
	PerpetualETHUSDOracleAddress = "0x694AA1769357215DE4FAC081bf1f309aDC325306"
)
View Source
const (
	PerpetualEURUSD              = "auto:perpetual_eur_usd"
	PerpetualEURUSDOracleAddress = "0x1a81afB8146aeFfCFc5E50e8479e826E7D55b910"
)
View Source
const (
	PerpetualLINKUSD              = "auto:perpetual_link_usd"
	PerpetualLINKUSDOracleAddress = "0xc59E3633BAAC79493d908e63626716e204A45EdF"
)
View Source
const CommunityBTCUSD230630MetadataID = "auto:community_btcusdc230630"
View Source
const CommunityETHUSD230630MetadataID = "auto:community_ethusdc230630"
View Source
const CommunityLinkUSD230630MetadataID = "auto:community_linkusdc230630"
View Source
const EmptyMetadata = ""
View Source
const MainnetAssetID = "c9fe6fc24fce121b2cc72680543a886055abb560043fda394ba5376203b7527d"
View Source
const MainnetBTCUSDTMetadataID = "auto:mainnet_btc_usdt"
View Source
const MainnetDogeUSDTMetadataID = "auto:mainnet_doge_usdt"
View Source
const MainnetETHUSDTMetadataID = "auto:mainnet_eth_usdt"
View Source
const MainnetLinkUSDTMetadataID = "auto:mainnet_link_usdt"
View Source
const Perpetual1000PEPEUSD = "auto:perpetual_1000pepe_usd"
View Source
const PerpetualBTCUSDPyth = "auto:perpetual_btc_usd_pyth"
View Source
const PerpetualINJUSD = "auto:perpetual_link_usd"
View Source
const PerpetualJUPUSDPyth = "auto:perpetual_jup_usd_pyth"
View Source
const PerpetualSNXUSD = "auto:perpetual_snx_usd"

Variables

View Source
var (
	MainnetBTCUSDTOracleDecimalPlaces   = uint64(6)
	MainnetBTCUSDTMarketSettlementHours = 24 * 31
	MainnetBTCUSDTPositionDecimalPlaces = int64(4)
	MainnetBTCUSDTDecimalPlaces         = uint64(1)
)
View Source
var (
	MainnetETHUSDTOracleDecimalPlaces   = uint64(6)
	MainnetETHUSDTMarketSettlementHours = 24 * 31
	MainnetETHUSDTPositionDecimalPlaces = int64(3)
	MainnetETHUSDTDecimalPlaces         = uint64(2)
)
View Source
var (
	MainnetDogeUSDTOracleDecimalPlaces   = uint64(6)
	MainnetDogeUSDTMarketSettlementHours = 24 * 31
	MainnetDogeUSDTPositionDecimalPlaces = int64(-3)
	MainnetDogeUSDTDecimalPlaces         = uint64(5)
)
View Source
var (
	MainnetLinkUSDTOracleDecimalPlaces   = uint64(6)
	MainnetLinkUSDTMarketSettlementHours = 24 * 31
	MainnetLinkUSDTPositionDecimalPlaces = int64(1)
	MainnetLinkUSDTDecimalPlaces         = uint64(3)
)
View Source
var DefaultExtraMetadata []string = []string{
	"devopstools:true",
}

Functions

func New1000PEPEUSDPerpetualMarketProposal added in v0.74.10

func New1000PEPEUSDPerpetualMarketProposal(
	settlementVegaAssetId string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewAAPLMarketProposal

func NewAAPLMarketProposal(
	settlementVegaAssetId string,
	decimalPlaces uint64,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewAAVEDAIMarketProposal

func NewAAVEDAIMarketProposal(
	settlementVegaAssetId string,
	decimalPlaces uint64,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewBTCUSDGnosisPerpetualMarketProposal added in v0.74.10

func NewBTCUSDGnosisPerpetualMarketProposal(
	settlementVegaAssetId string,
	oracleAddress string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewBTCUSDIncentiveMarketProposal

func NewBTCUSDIncentiveMarketProposal(
	settlementVegaAssetId string,
	decimalPlaces uint64,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewBTCUSDMainnet2MarketProposal added in v0.74.10

func NewBTCUSDMainnet2MarketProposal(
	settlementVegaAssetId string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewBTCUSDMainnetMarketProposal added in v0.74.10

func NewBTCUSDMainnetMarketProposal(
	settlementVegaAssetId string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewBTCUSDMarketProposal

func NewBTCUSDMarketProposal(
	settlementVegaAssetId string,
	decimalPlaces uint64,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewBTCUSDPerpetualMarketProposal

func NewBTCUSDPerpetualMarketProposal(
	settlementVegaAssetId string,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewBTCUSDPythPerpetualMarketProposal added in v0.74.10

func NewBTCUSDPythPerpetualMarketProposal(
	settlementVegaAssetId string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewCommunityBTCUSD230630

func NewCommunityBTCUSD230630(
	settlementVegaAssetId string,
	decimalPlaces uint64,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) (*commandspb.ProposalSubmission, error)

settlementVegaAssetId ideally with 6 decimal places

func NewCommunityETHUSD230630

func NewCommunityETHUSD230630(
	settlementVegaAssetId string,
	decimalPlaces uint64,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) (*commandspb.ProposalSubmission, error)

settlementVegaAssetId ideally with 6 decimal places

func NewCommunityLinkUSD230630

func NewCommunityLinkUSD230630(
	settlementVegaAssetId string,
	decimalPlaces uint64,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) (*commandspb.ProposalSubmission, error)

settlementVegaAssetId ideally with 6 decimal places

func NewDAIUSDPerpetualMarketProposal

func NewDAIUSDPerpetualMarketProposal(
	settlementVegaAssetId string,
	decimalPlaces uint64,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewETHBTCMarketProposal

func NewETHBTCMarketProposal(
	settlementVegaAssetId string,
	decimalPlaces uint64,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewETHDAIMarketProposal

func NewETHDAIMarketProposal(
	settlementVegaAssetId string,
	decimalPlaces uint64,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewETHUSDPerpetualMarketProposal

func NewETHUSDPerpetualMarketProposal(
	settlementVegaAssetId string,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewEURUSDPerpetualMarketProposal

func NewEURUSDPerpetualMarketProposal(
	settlementVegaAssetId string,
	decimalPlaces uint64,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewFutureBTCUSDT added in v0.74.10

func NewFutureBTCUSDT(
	settlementVegaAssetId string,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

settlementVegaAssetId ideally with 6 decimal places

func NewFutureBTCUSDTWithoutTime added in v0.74.10

func NewFutureBTCUSDTWithoutTime(settlementAsset string, oraclePubKey string) *commandspb.ProposalSubmission

func NewFutureETHUSDT added in v0.74.10

func NewFutureETHUSDT(
	settlementVegaAssetId string,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

settlementVegaAssetId ideally with 6 decimal places

func NewFutureETHUSDTWithoutTime added in v0.74.10

func NewFutureETHUSDTWithoutTime(settlementAsset string, oraclePubKey string) *commandspb.ProposalSubmission

func NewINJUSDPerpetualMarketProposal added in v0.74.10

func NewINJUSDPerpetualMarketProposal(
	settlementVegaAssetId string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewJUPUSDPythPerpetualMarketProposal added in v0.74.10

func NewJUPUSDPythPerpetualMarketProposal(
	settlementVegaAssetId string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewLINKUSDPerpetualMarketProposal

func NewLINKUSDPerpetualMarketProposal(
	settlementVegaAssetId string,
	decimalPlaces uint64,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewMainnetDogeUSDT

func NewMainnetDogeUSDT(
	settlementVegaAssetId string,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

settlementVegaAssetId ideally with 6 decimal places

func NewMainnetLinkUSDT

func NewMainnetLinkUSDT(
	settlementVegaAssetId string,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

settlementVegaAssetId ideally with 6 decimal places

func NewMainnetSimulationBitcoinTetherPerpetual added in v0.74.10

func NewMainnetSimulationBitcoinTetherPerpetual(
	settlementAsset string,
	closingTime time.Time,
	enactmentTime time.Time,
) *commandspb.ProposalSubmission

func NewMainnetSimulationBitcoinTetherPerpetualWithoutTime added in v0.74.10

func NewMainnetSimulationBitcoinTetherPerpetualWithoutTime(settlementAsset string) *commandspb.ProposalSubmission

func NewMainnetSimulationEtherTetherPerpetual added in v0.74.10

func NewMainnetSimulationEtherTetherPerpetual(
	settlementAsset string,
	closingTime time.Time,
	enactmentTime time.Time,
) *commandspb.ProposalSubmission

func NewMainnetSimulationEtherTetherPerpetualWithoutTime added in v0.74.10

func NewMainnetSimulationEtherTetherPerpetualWithoutTime(settlementAsset string) *commandspb.ProposalSubmission

func NewMainnetSimulationINJUSDTPerp added in v0.74.10

func NewMainnetSimulationINJUSDTPerp(
	settlementVegaAssetId string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewMainnetSimulationINJUSDTPerpWithoutTime added in v0.74.10

func NewMainnetSimulationINJUSDTPerpWithoutTime(settlementAsset string) *commandspb.ProposalSubmission

func NewMainnetSimulationLDOUSDTPerp added in v0.74.10

func NewMainnetSimulationLDOUSDTPerp(
	settlementVegaAssetId string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewMainnetSimulationLDOUSDTPerpWithoutTime added in v0.74.10

func NewMainnetSimulationLDOUSDTPerpWithoutTime(settlementAsset string) *commandspb.ProposalSubmission

func NewMainnetSimulationSNXUSDTPerp added in v0.74.10

func NewMainnetSimulationSNXUSDTPerp(
	settlementVegaAssetId string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewMainnetSimulationSNXUSDTPerpWithoutTime added in v0.74.10

func NewMainnetSimulationSNXUSDTPerpWithoutTime(settlementAsset string) *commandspb.ProposalSubmission

func NewSNXUSDPerpetualMarketProposal added in v0.74.10

func NewSNXUSDPerpetualMarketProposal(
	settlementVegaAssetId string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewTSLAMarketProposal

func NewTSLAMarketProposal(
	settlementVegaAssetId string,
	decimalPlaces uint64,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func NewUNIDAIMarketProposal

func NewUNIDAIMarketProposal(
	settlementVegaAssetId string,
	decimalPlaces uint64,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func UpdateBTCUSDMainnetMarketProposal added in v0.74.10

func UpdateBTCUSDMainnetMarketProposal(
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

func UpdateETHUSDMainnetMarketProposal added in v0.74.10

func UpdateETHUSDMainnetMarketProposal(
	closingTime time.Time,
	enactmentTime time.Time,
	extraMetadata []string,
) *commandspb.ProposalSubmission

Types

This section is empty.

Jump to

Keyboard shortcuts

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