Documentation ¶
Index ¶
Constants ¶
View Source
const ( MarketSpot = "Spot" MarketMt = "Mt" )
View Source
const ( TmSec = "Sec" TmMinute = "Minute" TmMin5 = "Min5" TmMin15 = "Min15" TmMin30 = "Min30" TmHour = "Hour" TmHour4 = "Hour4" TmHour6 = "Hour6" TmHour12 = "Hour12" TmDay = "Day" TmWeek = "Week" TmMonth = "Month" )
View Source
const ( PriceBid = "Bid" PriceAsk = "Ask" PriceMid = "Mid" PriceTrades = "Trades" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CandleData ¶
type CandleData struct { Ts time.Time `json:"dateTime"` Open decimal.Decimal `json:"open"` Low decimal.Decimal `json:"low"` High decimal.Decimal `json:"high"` Close decimal.Decimal `json:"close"` Volume float64 `json:"volume"` OppositeVolume float64 `json:"oppositeVolume"` }
CandleData contains candle info.
type CandlesHistoryInfo ¶
type CandlesHistoryInfo struct { AssetPair string `json:"assetPair"` Period string `json:"period"` DateFrom time.Time `json:"dateFrom"` DateTo time.Time `json:"dateTo"` Type string `json:"type"` }
CandlesHistoryInfo contains common fields for candles requests and responses.
type CandlesHistoryResp ¶
type CandlesHistoryResp struct { CandlesHistoryInfo Data []CandleData `json:"data"` }
CandlesHistoryResp is a response for '/Candles/history' EP.
type DictEntry ¶
type DictEntry struct { ID string `json:"id"` Name string `json:"name"` Accuracy int `json:"accuracy"` InvertedAccuracy int `json:"invertedAccuracy"` BaseAssetID string `json:"baseAssetId"` QuotingAssetId string `json:"quotingAssetId"` }
DictEntry is a description of an asset.
type Public ¶
type Public struct {
// contains filtered or unexported fields
}
Public is a client for public API
func (*Public) AssetPairs ¶
func (p *Public) AssetPairs() *assetPairs
AssetPairs returns '/AssetPairs' EP accessor.
Click to show internal directories.
Click to hide internal directories.