Versions in this module Expand all Collapse all v0 v0.1.4 Sep 22, 2020 v0.1.3 Sep 22, 2020 v0.1.2 Sep 21, 2020 v0.1.1 Sep 21, 2020 v0.1.0 Sep 21, 2020 v0.0.9 Sep 21, 2020 v0.0.8 Sep 21, 2020 v0.0.7 Sep 21, 2020 v0.0.6 Sep 21, 2020 v0.0.5 Sep 21, 2020 Changes in this version + type AccountData struct + AssetName string + Available float64 + Balance float64 + Locked float64 + type AssetData struct + AssetName string + DepositDecimals float64 + DepositFee float64 + MaxDepositAmount float64 + MaxWithdrawalAmount float64 + MinDepositAmount float64 + MinWithdrawalAmount float64 + WithdrawalDecimals float64 + WithdrawalFee float64 + type BTCMarkets struct + func (b *BTCMarkets) BatchPlaceCancelOrders(cancelOrders []CancelBatch, placeOrders []PlaceBatch) (BatchPlaceCancelResponse, error) + func (b *BTCMarkets) CancelAllOpenOrdersByPairs(marketIDs []string) ([]CancelOrderResp, error) + func (b *BTCMarkets) CancelAllOrders(_ *order.Cancel) (order.CancelAllResponse, error) + func (b *BTCMarkets) CancelBatchOrders(ids []string) (BatchCancelResponse, error) + func (b *BTCMarkets) CancelOrder(o *order.Cancel) error + func (b *BTCMarkets) CreateNewReport(reportType, format string) (CreateReportResp, error) + func (b *BTCMarkets) FetchAccountInfo() (account.Holdings, error) + func (b *BTCMarkets) FetchDepositAddress(assetName string, before, after, limit int64) (DepositAddress, error) + func (b *BTCMarkets) FetchOrder(id string) (OrderData, error) + func (b *BTCMarkets) FetchOrderbook(p currency.Pair, assetType asset.Item) (*orderbook.Base, error) + func (b *BTCMarkets) FetchTicker(p currency.Pair, assetType asset.Item) (*ticker.Price, error) + func (b *BTCMarkets) FetchTradablePairs(a asset.Item) ([]string, error) + func (b *BTCMarkets) FormatExchangeKlineInterval(in kline.Interval) string + func (b *BTCMarkets) GetAccountBalance() ([]AccountData, error) + func (b *BTCMarkets) GetActiveOrders(req *order.GetOrdersRequest) ([]order.Detail, error) + func (b *BTCMarkets) GetBatchTrades(ids []string) (BatchTradeResponse, error) + func (b *BTCMarkets) GetDefaultConfig() (*config.ExchangeConfig, error) + func (b *BTCMarkets) GetDeposit(id string) (TransferData, error) + func (b *BTCMarkets) GetDepositAddress(cryptocurrency currency.Code, accountID string) (string, error) + func (b *BTCMarkets) GetExchangeHistory(p currency.Pair, assetType asset.Item, timestampStart, timestampEnd time.Time) ([]exchange.TradeHistory, error) + func (b *BTCMarkets) GetFee(feeBuilder *exchange.FeeBuilder) (float64, error) + func (b *BTCMarkets) GetFeeByType(feeBuilder *exchange.FeeBuilder) (float64, error) + func (b *BTCMarkets) GetFundingHistory() ([]exchange.FundHistory, error) + func (b *BTCMarkets) GetHistoricCandles(pair currency.Pair, a asset.Item, start, end time.Time, ...) (kline.Item, error) + func (b *BTCMarkets) GetHistoricCandlesExtended(p currency.Pair, a asset.Item, start, end time.Time, interval kline.Interval) (kline.Item, error) + func (b *BTCMarkets) GetMarketCandles(marketID, timeWindow string, from, to time.Time, before, after, limit int64) (out CandleResponse, err error) + func (b *BTCMarkets) GetMarkets() ([]Market, error) + func (b *BTCMarkets) GetMultipleOrderbooks(marketIDs []string) ([]Orderbook, error) + func (b *BTCMarkets) GetOrderHistory(req *order.GetOrdersRequest) ([]order.Detail, error) + func (b *BTCMarkets) GetOrderHistoryById(getOrdersRequest string) ([]order.Detail, error) + func (b *BTCMarkets) GetOrderInfo(orderID string) (order.Detail, error) + func (b *BTCMarkets) GetOrderbook(marketID string, level int64) (Orderbook, error) + func (b *BTCMarkets) GetOrders(marketID string, before, after, limit int64, openOnly bool) ([]OrderData, error) + func (b *BTCMarkets) GetReport(reportID string) (ReportData, error) + func (b *BTCMarkets) GetServerTime() (time.Time, error) + func (b *BTCMarkets) GetTicker(marketID string) (Ticker, error) + func (b *BTCMarkets) GetTickers(marketIDs currency.Pairs) ([]Ticker, error) + func (b *BTCMarkets) GetTradeByID(id string) (TradeHistoryData, error) + func (b *BTCMarkets) GetTradeHistory(marketID, orderID string, before, after, limit int64) ([]TradeHistoryData, error) + func (b *BTCMarkets) GetTrades(marketID string, before, after, limit int64) ([]Trade, error) + func (b *BTCMarkets) GetTradingFees() (TradingFeeResponse, error) + func (b *BTCMarkets) GetTransactions(assetName string, before, after, limit int64) ([]TransactionData, error) + func (b *BTCMarkets) GetTransfer(id string) (TransferData, error) + func (b *BTCMarkets) GetWithdrawal(id string) (TransferData, error) + func (b *BTCMarkets) GetWithdrawalFees() ([]WithdrawalFeeData, error) + func (b *BTCMarkets) ListAssets() ([]AssetData, error) + func (b *BTCMarkets) ListDeposits(before, after, limit int64) ([]TransferData, error) + func (b *BTCMarkets) ListTransfers(before, after, limit int64) ([]TransferData, error) + func (b *BTCMarkets) ListWithdrawals(before, after, limit int64) ([]TransferData, error) + func (b *BTCMarkets) ModifyOrder(action *order.Modify) (string, error) + func (b *BTCMarkets) NewOrder(marketID string, price, amount float64, orderType, side string, ...) (OrderData, error) + func (b *BTCMarkets) RemoveOrder(id string) (CancelOrderResp, error) + func (b *BTCMarkets) RequestWithdraw(assetName string, amount float64, ...) (TransferData, error) + func (b *BTCMarkets) Run() + func (b *BTCMarkets) SendAuthenticatedRequest(method, path string, data, result interface{}, f request.EndpointLimit) (err error) + func (b *BTCMarkets) SendHTTPRequest(path string, result interface{}) error + func (b *BTCMarkets) SetDefaults() + func (b *BTCMarkets) Setup(exch *config.ExchangeConfig) error + func (b *BTCMarkets) Start(wg *sync.WaitGroup) + func (b *BTCMarkets) SubmitOrder(s *order.Submit) (order.SubmitResponse, error) + func (b *BTCMarkets) Subscribe(channelsToSubscribe []stream.ChannelSubscription) error + func (b *BTCMarkets) UpdateAccountInfo() (account.Holdings, error) + func (b *BTCMarkets) UpdateOrderbook(p currency.Pair, assetType asset.Item) (*orderbook.Base, error) + func (b *BTCMarkets) UpdateTicker(p currency.Pair, assetType asset.Item) (*ticker.Price, error) + func (b *BTCMarkets) UpdateTradablePairs(forceUpdate bool) error + func (b *BTCMarkets) ValidateCredentials() error + func (b *BTCMarkets) WithdrawCryptocurrencyFunds(withdrawRequest *withdraw.Request) (*withdraw.ExchangeResponse, error) + func (b *BTCMarkets) WithdrawFiatFunds(withdrawRequest *withdraw.Request) (*withdraw.ExchangeResponse, error) + func (b *BTCMarkets) WithdrawFiatFundsToInternationalBank(withdrawRequest *withdraw.Request) (*withdraw.ExchangeResponse, error) + func (b *BTCMarkets) WsConnect() error + type BatchCancelResponse struct + CancelOrders []CancelOrderResp + UnprocessedRequests []UnprocessedBatchResp + type BatchPlaceCancelResponse struct + CancelledOrders []CancelOrderResp + PlacedOrders []BatchPlaceData + UnprocessedOrders []UnprocessedBatchResp + type BatchPlaceData struct + Amount float64 + ClientOrderID string + CreationTime time.Time + MarketID string + OpenAmount float64 + OrderID string + Price float64 + Side string + Status string + Type string + type BatchTradeResponse struct + Orders []BatchPlaceData + UnprocessedRequests []UnprocessedBatchResp + type CancelBatch struct + ClientOrderID string + OrderID string + type CancelOrderMethod struct + CancelOrder CancelBatch + type CancelOrderResp struct + ClientOrderID string + OrderID string + type CandleResponse [][6]string + type CreateReportResp struct + ReportID string + type DepositAddress struct + Address string + AssetName string + type Market struct + AmountDecimals int64 + BaseAsset string + MarketID string + MaxOrderAmount float64 + MinOrderAmount float64 + PriceDecimals int64 + QuoteAsset string + type MarketCandle struct + Close float64 + High float64 + Low float64 + Open float64 + Time time.Time + Volume float64 + type OBData struct + Price float64 + Volume float64 + type Order struct + ClientRequestID string + CreationTime time.Time + Currency string + ErrorMessage string + ID int64 + Instrument string + OpenVolume float64 + OrderSide string + OrderType string + Price float64 + Status string + Trades []TradeResponse + Volume float64 + type OrderData struct + Amount float64 + CreationTime time.Time + MarketID string + OpenAmount float64 + OrderID string + Price float64 + Side string + Status string + Type string + type OrderToGo struct + ClientRequestID string + Currency string + Instrument string + OrderSide string + OrderType string + Price int64 + Volume int64 + type Orderbook struct + Asks []OBData + Bids []OBData + MarketID string + SnapshotID int64 + type PaymentDetails struct + Address string + type PlaceBatch struct + Amount float64 + ClientOrderID string + MarketID string + OrderType string + PostOnly bool + Price float64 + SelfTrade string + Side string + TimeInForce string + TriggerAmount float64 + TriggerPrice float64 + type PlaceOrderMethod struct + PlaceOrder PlaceBatch + type RateLimit struct + Auth *rate.Limiter + BatchOrders *rate.Limiter + CreateNewReport *rate.Limiter + OrderPlacement *rate.Limiter + UnAuth *rate.Limiter + WithdrawRequest *rate.Limiter + func SetRateLimit() *RateLimit + func (r *RateLimit) Limit(f request.EndpointLimit) error + type ReportData struct + ContentURL string + CreationTime time.Time + Format string + ID string + ReportType string + Status string + type Ticker struct + BestAsk float64 + BestBID float64 + Change24h float64 + High24h float64 + LastPrice float64 + Low24h float64 + MarketID string + Timestamp time.Time + Volume float64 + type TimeResp struct + Time time.Time + type Trade struct + Amount float64 + Price float64 + Side string + Timestamp time.Time + TradeID string + type TradeHistoryData struct + Amount float64 + Fee float64 + ID string + LiquidityType string + MarketID string + OrderID string + Price float64 + Side string + Timestamp time.Time + type TradeResponse struct + CreationTime time.Time + Description string + Fee float64 + ID int64 + Price float64 + Volume float64 + type TradingFee struct + ErrorCode int + ErrorMessage string + Success bool + TradingFeeRate float64 + Volume30Day float64 + type TradingFeeData struct + MakerFeeRate float64 + MarketID string + TakerFeeRate float64 + type TradingFeeResponse struct + FeeByMarkets []TradingFeeData + MonthlyVolume float64 + type TransactionData struct + Amount float64 + AssetName string + Balance float64 + CreationTime time.Time + Description string + FeeType string + ID string + RecordType string + ReferrenceID string + type TransferData struct + Amount float64 + AssetName string + CreationTime time.Time + Description string + Fee float64 + ID string + LastUpdate string + PaymentDetails PaymentDetails + RequestType string + Status string + type UnprocessedBatchResp struct + Code string + Message string + RequestID string + type WithdrawRequestAUD struct + AccountName string + AccountNumber string + Amount int64 + BSBNumber string + BankName string + Currency string + type WithdrawRequestCrypto struct + Address string + Amount int64 + Currency string + type WithdrawalFeeData struct + AssetName string + Fee float64 + type WsError struct + Code int64 + Message string + MessageType string + type WsFundTransfer struct + Amount float64 + Currency string + Fee float64 + FundTransferID int64 + MessageType string + Status string + Timestamp time.Time + TransferType string + type WsMessageType struct + MessageType string + type WsOrderChange struct + MarketID string + MessageType string + OpenVolume float64 + OrderID int64 + OrderType string + Side string + Status string + Timestamp time.Time + Trades []WsTradeData + TriggerStatus string + type WsOrderbook struct + Asks [][]interface{} + Bids [][]interface{} + Currency string + MessageType string + Snapshot bool + Timestamp time.Time + type WsSubscribe struct + Channels []string + Key string + MarketIDs []string + MessageType string + Signature string + Timestamp string + type WsTick struct + Ask float64 + Bid float64 + Currency string + High24 float64 + Last float64 + Low24h float64 + MessageType string + Price24h float64 + Timestamp time.Time + Volume float64 + type WsTrade struct + Currency string + MessageType string + Price float64 + Side string + Timestamp time.Time + TradeID int64 + Volume float64 + type WsTradeData struct + Fee float64 + LiquidityType string + Price float64 + TradeID int64 + Volume float64