market

package
v0.0.0-...-a4f9000 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrenciesVo

type CurrenciesVo struct {
	Currencies []string `json:"currencies"`
}

type DeliveryPriceVo

type DeliveryPriceVo struct {
	DeliveryTime int64  `json:"delivery_time"`
	Currency     string `json:"currency"`
	Price        string `json:"price"`
}

type FundingRateHistoryVo

type FundingRateHistoryVo struct {
	InstrumentId       string `json:"instrument_id" example:"BTC-27MAR20-9000-C"`
	Time               int64  `json:"time" example:"1585296000000"`
	AverageFundingRate string `json:"average_funding_rate" example:"0.0000023"`
	IndexPrice         string `json:"index_price" example:"8000"`
	MarkPrice          string `json:"mark_price" example:"7993"`
}

type FundingRateVo

type FundingRateVo struct {
	InstrumentId string `json:"instrument_id" example:"BTC-27MAR20-9000-C"`
	Time         int64  `json:"time" example:"1585296000000"`
	FundingRate  string `json:"funding_rate" example:"0.0000023"`
	IndexPrice   string `json:"index_price" example:"8000"`
	MarkPrice    string `json:"mark_price" example:"7993"`
}

type GetCurrenciesResponse

type GetCurrenciesResponse struct {
	base.RestBaseResponse
	Data CurrenciesVo `json:"data"`
}

type GetDeliveryInfoResponse

type GetDeliveryInfoResponse struct {
	base.RestBaseResponse
	Data []DeliveryPriceVo `json:"data"`
}

type GetFundingRateHistoryResponse

type GetFundingRateHistoryResponse struct {
	base.RestBaseResponse
	Data []FundingRateHistoryVo `json:"data"`
}

type GetFundingRateResponse

type GetFundingRateResponse struct {
	base.RestBaseResponse
	Data FundingRateVo `json:"data"`
}

type GetIndexResponse

type GetIndexResponse struct {
	base.RestBaseResponse
	Data IndexVo `json:"data"`
}

type GetInstrumentsResponse

type GetInstrumentsResponse struct {
	base.RestBaseResponse
	Data []InstrumentVo `json:"data"`
}

type GetKlinesResponse

type GetKlinesResponse struct {
	base.RestBaseResponse
	Data KlineVo `json:"data"`
}

type GetMarketSummaryResponse

type GetMarketSummaryResponse struct {
	base.RestBaseResponse
	Data []MarketSummaryVo `json:"data"`
}

type GetMarketTradeResponse

type GetMarketTradeResponse struct {
	base.RestBaseResponse
	PageInfo base.NewPaging  `json:"page_info"`
	Data     []MarketTradeVo `json:"data"`
}

type GetOrderBookResponse

type GetOrderBookResponse struct {
	base.RestBaseResponse
	Data OrderBookVo `json:"data"`
}

type GetTickerResponse

type GetTickerResponse struct {
	base.RestBaseResponse
	Data TickerVo `json:"data"`
}

type GetTotalVolumeResponse

type GetTotalVolumeResponse struct {
	base.RestBaseResponse
	Data TotalVolumeVo `json:"data"`
}

type IndexVo

type IndexVo struct {
	Currency   string `json:"name" example:"BTC"`
	IndexPrice string `json:"index_price" example:"8000"`
}

type InstrumentVo

type InstrumentVo struct {
	InstrumentId  string `json:"instrument_id" example:"BTC-27MAR20-9000-C"`
	CreatedAt     int64  `json:"created_at" example:"1582790400000"`
	UpdatedAt     int64  `json:"updated_at" example:"1582790400000"`
	BaseCurrency  string `json:"base_currency" example:"BTC"`
	QuoteCurrency string `json:"quote_currency" example:"USD"`
	StrikePrice   string `json:"strike_price" example:"9000"`
	ExpirationAt  int64  `json:"expiration_at" example:"1585296000000"`
	OptionType    string `json:"option_type" example:"call"`

	Category             string `json:"category"`
	MinPrice             string `json:"min_price" example:"0.0005"`
	MaxPrice             string `json:"max_price" example:"10"`
	PriceStep            string `json:"price_step" example:"0.0005"`
	MinSize              string `json:"min_size" example:"0.1"`
	SizeStep             string `json:"size_step" example:"0.1"`
	DeliveryFeeRate      string `json:"delivery_fee_rate" example:"0.0002"`
	ContractSize         string `json:"contract_size"`
	ContractSizeCurrency string `json:"contract_size_currency"`
	Active               bool   `json:"active"`
}

type KlineVo

type KlineVo struct {
	Volume []float64 `json:"volume"`
	//Ticks  []int64   `json:"ticks"`
	Timestamps []int64 `json:"timestamps"`
	//Status string    `json:"status"`
	Open  []float64 `json:"open"`
	Low   []float64 `json:"low"`
	High  []float64 `json:"high"`
	Close []float64 `json:"close"`
}

type MarketSummaryVo

type MarketSummaryVo struct {
	InstrumentId string `json:"instrument_id"`
	Timestamp    int64  `json:"timestamp"`

	BestBid    string `json:"best_bid"`
	BestAsk    string `json:"best_ask"`
	BestBidQty string `json:"best_bid_qty"`
	BestAskQty string `json:"best_ask_qty"`

	LastPrice    string `json:"last_price"`
	LastQty      string `json:"last_qty"`
	Open24H      string `json:"open24h"`
	High24H      string `json:"high24h"`
	Low24H       string `json:"low24h"`
	Volume24H    string `json:"volume24h"`
	OpenInterest string `json:"open_interest"`

	MarkPrice string `json:"mark_price"`

	MaxBuy  string `json:"max_buy"`
	MinSell string `json:"min_sell"`

	Delta string `json:"delta"`
	Gamma string `json:"gamma"`
	Vega  string `json:"vega"`
	Theta string `json:"theta"`
}

type MarketTradeVo

type MarketTradeVo struct {
	CreatedAt       int64  `json:"created_at" example:"1585299600000"`
	TradeId         int64  `json:"trade_id" example:"3743"`
	InstrumentId    string `json:"instrument_id" example:"BTC-27MAR20-9000-C"`
	Price           string `json:"price" example:"0.034"`
	Qty             string `json:"qty" example:"1"`
	Side            string `json:"side" example:"buy"`
	Sigma           string `json:"sigma" example:"0.002"`
	IndexPrice      string `json:"index_price" example:"8000"`
	UnderlyingPrice string `json:"underlying_price" example:"7900"`
	IsBlockTrade    bool   `json:"is_block_trade" example:"false"`
}

type OrderBookVo

type OrderBookVo struct {
	InstrumentId string     `json:"instrument_id" example:"BTC-27MAR20-9000-C"`
	Timestamp    int64      `json:"timestamp" example:"1585299600000"`
	Bids         [][]string `json:"bids"`
	Asks         [][]string `json:"asks"`
}

type TickerVo

type TickerVo struct {
	Time         int64  `json:"time"`
	InstrumentId string `json:"instrument_id"`

	BestBid    string `json:"best_bid"`
	BestAsk    string `json:"best_ask"`
	BestBidQty string `json:"best_bid_qty"`
	BestAskQty string `json:"best_ask_qty"`
	AskSigma   string `json:"ask_sigma"`
	BidSigma   string `json:"bid_sigma"`

	LastPrice      string `json:"last_price"`
	LastQty        string `json:"last_qty"`
	Open24H        string `json:"open24h"`
	High24H        string `json:"high24h"`
	Low24H         string `json:"low24h"`
	PriceChange24H string `json:"price_change24h"`
	Volume24H      string `json:"volume24h"`
	OpenInterest   string `json:"open_interest"`

	UnderlyingName  string `json:"underlying_name,omitempty"`
	UnderlyingPrice string `json:"underlying_price,omitempty"`
	MarkPrice       string `json:"mark_price"`
	Sigma           string `json:"sigma,omitempty"`
	Delta           string `json:"delta,omitempty"`
	Vega            string `json:"vega,omitempty"`
	Theta           string `json:"theta,omitempty"`
	Gamma           string `json:"gamma,omitempty"`

	MinSellPrice string `json:"min_sell"`
	MaxBuyPrice  string `json:"max_buy"`
}

type TotalVolumeVo

type TotalVolumeVo struct {
	TotalVolume24Hours string          `json:"total_volume_24_hours"`
	Details            []VolumeDetails `json:"details"`
}

type VolumeDetails

type VolumeDetails struct {
	Currency      string `json:"currency"`
	Category      string `json:"category"`
	VolumeBaseCcy string `json:"volume_base_ccy"`
	VolumeUsd     string `json:"volume_usd"`
	IndexPrice    string `json:"index_price"`
}

Jump to

Keyboard shortcuts

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