Documentation ¶
Index ¶
- type Book
- type Candle
- type CandlesParam
- type CandlesResponse
- type HistoricalFunding
- type HistoricalFundingsParam
- type HistoricalFundingsResponse
- type Market
- type MarketsResponse
- type OrderbookResponse
- type Public
- func (p *Public) GetCandles(param *CandlesParam) (*CandlesResponse, error)
- func (p *Public) GetHistoricalFunding(param *HistoricalFundingsParam) (*HistoricalFundingsResponse, error)
- func (p *Public) GetMarkets(marketID string) (*MarketsResponse, error)
- func (p *Public) GetTrades(param *TradesParam) (*TradesResponse, error)
- type Trade
- type TradesParam
- type TradesResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Book ¶
func (*Book) UnmarshalJSON ¶
type Candle ¶
type Candle struct { Market string `json:"market"` Resolution string `json:"resolution"` Low string `json:"low"` High string `json:"high"` Open string `json:"open"` Close string `json:"close"` BaseTokenVolume string `json:"baseTokenVolume"` Trades string `json:"trades"` UsdVolume string `json:"usdVolume"` StartingOpenInterest string `json:"startingOpenInterest"` StartedAt time.Time `json:"startedAt"` UpdatedAt time.Time `json:"updatedAt"` }
type CandlesParam ¶
type CandlesResponse ¶
type CandlesResponse struct {
Candles []Candle `json:"candles"`
}
type HistoricalFunding ¶
type HistoricalFundingsParam ¶
type HistoricalFundingsResponse ¶
type HistoricalFundingsResponse struct {
HistoricalFundings []HistoricalFunding `json:"historicalFunding"`
}
type Market ¶
type Market struct { Market string `json:"market"` BaseAsset string `json:"baseAsset"` QuoteAsset string `json:"quoteAsset"` StepSize string `json:"stepSize"` TickSize string `json:"tickSize"` IndexPrice string `json:"indexPrice"` OraclePrice string `json:"oraclePrice"` PriceChange24H string `json:"priceChange24H"` NextFundingRate string `json:"nextFundingRate"` MinOrderSize string `json:"minOrderSize"` Type string `json:"type"` InitialMarginFraction string `json:"initialMarginFraction"` MaintenanceMarginFraction string `json:"maintenanceMarginFraction"` BaselinePositionSize string `json:"baselinePositionSize"` IncrementalPositionSize string `json:"incrementalPositionSize"` IncrementalInitialMarginFraction string `json:"incrementalInitialMarginFraction"` Volume24H string `json:"volume24H"` Trades24H string `json:"trades24H"` OpenInterest string `json:"openInterest"` MaxPositionSize string `json:"maxPositionSize"` AssetResolution string `json:"assetResolution"` SyntheticAssetID string `json:"syntheticAssetId"` Status string `json:"status"` NextFundingAt time.Time `json:"nextFundingAt"` }
type MarketsResponse ¶
type OrderbookResponse ¶
type Public ¶
func (*Public) GetCandles ¶
func (p *Public) GetCandles(param *CandlesParam) (*CandlesResponse, error)
GetCandles response head of the array is currently
func (*Public) GetHistoricalFunding ¶
func (p *Public) GetHistoricalFunding(param *HistoricalFundingsParam) (*HistoricalFundingsResponse, error)
func (*Public) GetMarkets ¶
func (p *Public) GetMarkets(marketID string) (*MarketsResponse, error)
func (*Public) GetTrades ¶
func (p *Public) GetTrades(param *TradesParam) (*TradesResponse, error)
type TradesParam ¶
type TradesResponse ¶
type TradesResponse struct {
Trades []Trade `json:"trades"`
}
Click to show internal directories.
Click to hide internal directories.