products

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeeTierType

type FeeTierType struct {
	PricingTier  string `json:"pricing_tier"`
	UsdFrom      string `json:"usd_from"`
	UsdTo        string `json:"usd_to"`
	TakerFeeRate string `json:"taker_fee_rate"`
	MakerFeeRate string `json:"maker_fee_rate"`
}

type GoodsAndServicesTaxType

type GoodsAndServicesTaxType struct {
	Rate string `json:"rate"`
	Type string `json:"type"`
}

type MarginRateType

type MarginRateType struct {
	Value string `json:"value"`
}

type RequestForListProducts

type RequestForListProducts struct {
	StartDate          time.Time            `url:"start_date,omitempty"`
	EndDate            time.Time            `url:"end_date,omitempty"`
	UserNaticeCurrency string               `url:"user_native_currency,omitempty"`
	ProductType        products.ProductType `url:"product_type,omitempty"`
}

func (*RequestForListProducts) Method

func (req *RequestForListProducts) Method() string

func (*RequestForListProducts) Path

func (req *RequestForListProducts) Path() string

func (*RequestForListProducts) Payload

func (req *RequestForListProducts) Payload() []byte

func (*RequestForListProducts) Query

func (req *RequestForListProducts) Query() string

type ResponseForListProducts

type ResponseForListProducts struct {
	TotalVolume             float64                 `json:"total_volume"`
	TotalFees               float64                 `json:"total_fees"`
	FeeTier                 FeeTierType             `json:"fee_tier"`
	MarginRate              MarginRateType          `json:"margin_rate"`
	GoodsAndServicesTax     GoodsAndServicesTaxType `json:"goods_and_services_tax"`
	AdvancedTradeOnlyVolume float64                 `json:"advanced_trade_only_volume"`
	AdvandedTradeOnlyFees   float64                 `json:"advanced_trade_only_fees"`
	CoinbaseProVolume       float64                 `json:"coinbase_pro_volume"`
	CoinbaseProFees         float64                 `json:"coinbase_pro_fees"`
}

Jump to

Keyboard shortcuts

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