v2

package
v0.0.0-...-01a2bca Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FullStore

type FullStore map[string]*PairStore

FullStore holds all supported asset types with the enabled and available pairs for an exchange.

type PairStore

type PairStore struct {
	AssetEnabled  bool           `json:"assetEnabled"`
	Enabled       string         `json:"enabled"`
	Available     string         `json:"available"`
	RequestFormat *v0.PairFormat `json:"requestFormat,omitempty"`
	ConfigFormat  *v0.PairFormat `json:"configFormat,omitempty"`
}

PairStore contains a pair store

type PairsManager

type PairsManager struct {
	BypassConfigFormatUpgrades bool           `json:"bypassConfigFormatUpgrades"`
	RequestFormat              *v0.PairFormat `json:"requestFormat,omitempty"`
	ConfigFormat               *v0.PairFormat `json:"configFormat,omitempty"`
	UseGlobalFormat            bool           `json:"useGlobalFormat,omitempty"`
	LastUpdated                int64          `json:"lastUpdated,omitempty"`
	Pairs                      FullStore      `json:"pairs"`
}

PairsManager contains exchange pair management config

type Version

type Version struct{}

Version is an ExchangeVersion to change the name of GDAX to CoinbasePro

func (*Version) DowngradeExchange

func (*Version) DowngradeExchange(_ context.Context, e []byte) ([]byte, error)

DowngradeExchange will change the exchange name from CoinbasePro to GDAX

func (*Version) Exchanges

func (*Version) Exchanges() []string

Exchanges returns just GDAX and CoinbasePro

func (*Version) UpgradeExchange

func (*Version) UpgradeExchange(_ context.Context, e []byte) ([]byte, error)

UpgradeExchange will change the exchange name from GDAX to CoinbasePro

Jump to

Keyboard shortcuts

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