Documentation
¶
Index ¶
- type Book
- type Candle
- type CandlesParam
- type CandlesResponse
- type ConfigResponse
- 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) GetConfig() (*ConfigResponse, 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 ¶
type Book struct {
Price string `json:"price"`
Size string `json:"size"`
Offset string `json:"offset"`
}
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 ConfigResponse ¶
type ConfigResponse struct {
CollateralAssetId string `json:"collateralAssetId"`
CollateralTokenAddress string `json:"collateralTokenAddress"`
DefaultMakerFee string `json:"defaultMakerFee"`
DefaultTakerFee string `json:"defaultTakerFee"`
ExchangeAddress string `json:"exchangeAddress"`
MaxExpectedBatchLengthMinutes string `json:"maxExpectedBatchLengthMinutes"`
MaxFastWithdrawalAmount string `json:"maxFastWithdrawalAmount"`
CancelOrderRateLimiting struct {
MaxPointsMulti int64 `json:"maxPointsMulti"`
MaxPointsSingle int64 `json:"maxPointsSingle"`
WindowSecMulti int64 `json:"windowSecMulti"`
WindowSecSingle int64 `json:"windowSecSingle"`
} `json:"cancelOrderRateLimiting"`
PlaceOrderRateLimiting struct {
MaxPoints int64 `json:"maxPoints"`
WindowSec int64 `json:"windowSec"`
TargetNotional int64 `json:"targetNotional"`
MinLimitConsumption int64 `json:"minLimitConsumption"`
MinMarketConsumption int64 `json:"minMarketConsumption"`
MinTriggerableConsumption int64 `json:"minTriggerableConsumption"`
MaxOrderConsumption int64 `json:"maxOrderConsumption"`
} `json:"placeOrderRateLimiting"`
}
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) GetConfig ¶
func (p *Public) GetConfig() (*ConfigResponse, error)
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.