Documentation ¶
Index ¶
- Constants
- func CreateNonceFileIfNotExists()
- func WriteNonce(data []byte)
- type ActiveOrder
- type ActiveOrdersResponse
- type ApiCredential
- type CallArg
- type CancelOrderResponse
- type CancelResult
- type DepthResponse
- type ErrorResponse
- type GetInfoResponse
- type GetInfoReturn
- type HistoricOrder
- type InfoResponse
- type LocalStorage
- type Offer
- type Offers
- type OrderInfo
- type OrderInfoResponse
- type PairInfo
- type Ticker
- type TickerInfoResponse
- type Trade
- type TradeHistoryResponse
- type TradeResponse
- type TradeResult
- type TradesResponse
- type Yobit
- func (y *Yobit) ActiveOrders(pair string, ch chan<- ActiveOrdersResponse)
- func (y *Yobit) CancelOrder(orderId string, ch chan CancelOrderResponse)
- func (y *Yobit) Depth(pairs string, ch chan<- DepthResponse)
- func (y *Yobit) DepthLimited(pairs string, limit int, ch chan<- DepthResponse)
- func (y *Yobit) GetAndIncrementNonce() (nonce uint64)
- func (y *Yobit) GetInfo(ch chan<- GetInfoResponse)
- func (y *Yobit) Info(ch chan<- InfoResponse)
- func (y *Yobit) IsMarketExists(market string) bool
- func (y *Yobit) LoadCookies()
- func (y *Yobit) OrderInfo(orderId string, ch chan<- OrderInfoResponse)
- func (y *Yobit) PassCloudflare()
- func (y *Yobit) Release()
- func (y *Yobit) SaveCookies()
- func (y *Yobit) SetCookies(cookies []*http.Cookie)
- func (y *Yobit) Tickers24(pairs []string, ch chan<- TickerInfoResponse)
- func (y *Yobit) Trade(pair string, tradeType string, rate float64, amount float64, ...)
- func (y *Yobit) TradeHistory(pair string, ch chan<- TradeHistoryResponse)
- func (y *Yobit) TradesLimited(pairs string, limit int, ch chan<- TradesResponse)
Constants ¶
View Source
const ( Url = "https://yobit.net" ApiVersion = "3" )
Variables ¶
This section is empty.
Functions ¶
func CreateNonceFileIfNotExists ¶
func CreateNonceFileIfNotExists()
func WriteNonce ¶
func WriteNonce(data []byte)
Types ¶
type ActiveOrder ¶
type ActiveOrdersResponse ¶
type ActiveOrdersResponse struct { Success uint8 `json:"success"` Error string `json:"error"` Orders map[string]ActiveOrder `json:"return"` }
type ApiCredential ¶
type CancelOrderResponse ¶
type CancelOrderResponse struct { Success uint8 `json:"success"` Error string `json:"error"` Result CancelResult `json:"return"` }
type CancelResult ¶
type DepthResponse ¶
type ErrorResponse ¶
============ PUBLIC API OBJECTS =================
type GetInfoResponse ¶
type GetInfoResponse struct { Success uint8 `json:"success"` Error string `json:"error"` Data GetInfoReturn `json:"return"` }
============ TRADE API OBJECTS =====================
type GetInfoReturn ¶
type HistoricOrder ¶
type InfoResponse ¶
type LocalStorage ¶
type LocalStorage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func NewStorage() *LocalStorage
func (*LocalStorage) LoadCookies ¶
func (s *LocalStorage) LoadCookies(url *url.URL) []*http.Cookie
func (*LocalStorage) Release ¶
func (s *LocalStorage) Release()
func (*LocalStorage) SaveCookies ¶
func (s *LocalStorage) SaveCookies(url *url.URL, cookies []*http.Cookie)
type Offer ¶
func (*Offer) UnmarshalJSON ¶
type OrderInfoResponse ¶
type TickerInfoResponse ¶
type TradeHistoryResponse ¶
type TradeHistoryResponse struct { Success uint8 `json:"success"` Error string `json:"error"` Orders map[string]HistoricOrder `json:"return"` }
type TradeResponse ¶
type TradeResponse struct { Success uint8 `json:"success"` Error string `json:"error"` Result TradeResult `json:"return"` }
type TradeResult ¶
type TradesResponse ¶
type Yobit ¶
type Yobit struct {
// contains filtered or unexported fields
}
func New ¶
func New(credential ApiCredential) *Yobit
func (*Yobit) ActiveOrders ¶
func (y *Yobit) ActiveOrders(pair string, ch chan<- ActiveOrdersResponse)
func (*Yobit) CancelOrder ¶
func (y *Yobit) CancelOrder(orderId string, ch chan CancelOrderResponse)
func (*Yobit) Depth ¶
func (y *Yobit) Depth(pairs string, ch chan<- DepthResponse)
func (*Yobit) DepthLimited ¶
func (y *Yobit) DepthLimited(pairs string, limit int, ch chan<- DepthResponse)
func (*Yobit) GetAndIncrementNonce ¶
func (*Yobit) GetInfo ¶
func (y *Yobit) GetInfo(ch chan<- GetInfoResponse)
func (*Yobit) Info ¶
func (y *Yobit) Info(ch chan<- InfoResponse)
func (*Yobit) IsMarketExists ¶
func (*Yobit) LoadCookies ¶
func (y *Yobit) LoadCookies()
func (*Yobit) OrderInfo ¶
func (y *Yobit) OrderInfo(orderId string, ch chan<- OrderInfoResponse)
func (*Yobit) PassCloudflare ¶
func (y *Yobit) PassCloudflare()
func (*Yobit) SaveCookies ¶
func (y *Yobit) SaveCookies()
func (*Yobit) SetCookies ¶
func (*Yobit) Tickers24 ¶
func (y *Yobit) Tickers24(pairs []string, ch chan<- TickerInfoResponse)
func (*Yobit) TradeHistory ¶
func (y *Yobit) TradeHistory(pair string, ch chan<- TradeHistoryResponse)
func (*Yobit) TradesLimited ¶
func (y *Yobit) TradesLimited(pairs string, limit int, ch chan<- TradesResponse)
Click to show internal directories.
Click to hide internal directories.