Documentation ¶
Index ¶
- func NewBittrexClient(apiKey string, secretKey string, client http.Client) *bittrexClient
- type Balance
- type BittrexAPI
- func (this *BittrexAPI) CreateOrder(order Order) (*Order, error)
- func (this *BittrexAPI) GetBalances() ([]*Balance, error)
- func (this *BittrexAPI) GetCurrency(symbol string) (*Currency, error)
- func (this *BittrexAPI) GetMarket(symbol string) (*Market, error)
- func (this *BittrexAPI) GetMarketSummaries() ([]*MarketSummary, error)
- func (this *BittrexAPI) GetMarketSummary(symbol string) (*MarketSummary, error)
- func (this *BittrexAPI) GetMarketTicker(symbol string) (*MarketTicker, error)
- func (this *BittrexAPI) GetMarketTickers() ([]*MarketTicker, error)
- func (this *BittrexAPI) GetMarkets() ([]*Market, error)
- func (this *BittrexAPI) GetOrder(orderID string) (*Order, error)
- func (this *BittrexAPI) GetOrders(openOrClosed string) ([]*Order, error)
- type Client
- type CryptoAPI
- type Currency
- type CurrencyPurchase
- type Dec
- type Http
- type Market
- type MarketSummary
- type MarketTicker
- type Order
- type OrderCancel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BittrexAPI ¶
type BittrexAPI struct {
// contains filtered or unexported fields
}
func NewBittrexAPI ¶
func NewBittrexAPI(client Client, uri string) *BittrexAPI
func (*BittrexAPI) CreateOrder ¶
func (this *BittrexAPI) CreateOrder(order Order) (*Order, error)
Required marketSymbol, direction, type, timeInForce
func (*BittrexAPI) GetBalances ¶
func (this *BittrexAPI) GetBalances() ([]*Balance, error)
func (*BittrexAPI) GetCurrency ¶
func (this *BittrexAPI) GetCurrency(symbol string) (*Currency, error)
func (*BittrexAPI) GetMarketSummaries ¶
func (this *BittrexAPI) GetMarketSummaries() ([]*MarketSummary, error)
func (*BittrexAPI) GetMarketSummary ¶
func (this *BittrexAPI) GetMarketSummary(symbol string) (*MarketSummary, error)
func (*BittrexAPI) GetMarketTicker ¶
func (this *BittrexAPI) GetMarketTicker(symbol string) (*MarketTicker, error)
func (*BittrexAPI) GetMarketTickers ¶
func (this *BittrexAPI) GetMarketTickers() ([]*MarketTicker, error)
func (*BittrexAPI) GetMarkets ¶
func (this *BittrexAPI) GetMarkets() ([]*Market, error)
type Currency ¶
type Currency struct { Symbol string `json:"symbol"` Name string `json:"name"` CoinType string `json:"coinType"` Status string `json:"status"` MinConfirmations string `json:"minConfirmations"` Notice string `json:"notice"` TxFee string `json:"txFee"` LogoUrl string `json:"logoUrl"` ProhibitedIn string `json:"prohibitedIn"` BaseAddress string `json:"baseAddress"` }
////////////////////////////////////////
type CurrencyPurchase ¶
type Market ¶
type Market struct { Symbol string `json:"symbol"` BaseCurrencySymbol string `json:"baseCurrencySymbol"` QuoteCurrencySymbol string `json:"quoteCurrencySymbol"` MinTradeSize string `json:"minTradeSize"` Precision int32 `json:"precision"` Status string `json:"status"` CreatedAt string `json:"createdAt"` Notice string `json:"notice"` ProhibitedIn []string `json:"prohibitedIn"` }
type MarketSummary ¶
type MarketTicker ¶
type Order ¶
type Order struct { OrderID string `json:"id,omitempty"` MarketSymbol string `json:"marketSymbol"` //Required Direction string `json:"direction"` //Required - Buy, Sell OrderType string `json:"type"` //Required - LIMIT, MARKET, CEILING_LIMIT, CEILING_MARKET Quantity *Dec `json:"quantity,string,omitempty"` Limit *Dec `json:"limit,string,omitempty"` Ceiling *Dec `json:"ceiling,string,omitempty"` TimeInForce string `json:"timeInForce,omitempty"` //GOOD_TIL_CANCELLED, IMMEDIATE_OR_CANCEL, FILL_OR_KILL, POST_ONLY_GOOD_TIL_CANCELLED, BUY_NOW ClientOrderId string `json:"clientOrderId,omitempty"` FillQuantity *Dec `json:"fillQuantity,string,omitempty"` Commission *Dec `json:"commission,string,omitempty"` Proceeds *Dec `json:"proceeds,string,omitempty"` Status string `json:"status,omitempty"` CreatedAt string `json:"createdAt,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` ClosedAt string `json:"closedAt,omitempty"` UseAwards bool `json:"useAwards,omitempty"` OrderToCancel *OrderCancel `json:"orderToCancel,omitempty"` //Required - GOOD_TIL_CANCELLED, IMMEDIATE_OR_CANCEL, FILL_OR_KILL, POST_ONLY_GOOD_TIL_CANCELLED, BUY_NOW }
type OrderCancel ¶
Click to show internal directories.
Click to hide internal directories.