Documentation ¶
Index ¶
- type AccountBalanceResult
- type AccountTransactionResult
- type Bitstamp
- func (b Bitstamp) AccountBalance() (*AccountBalanceResult, error)
- func (b Bitstamp) AccountTransactions() ([]AccountTransactionResult, error)
- func (b Bitstamp) BuyLimitOrder(pair string, amount float64, price float64, ...) (*BuyOrderResult, error)
- func (b Bitstamp) BuyMarketOrder(pair string, amount float64) (*BuyOrderResult, error)
- func (b Bitstamp) CancelOrder(orderId int64)
- func (b Bitstamp) OpenOrders() (*[]OpenOrder, error)
- func (b Bitstamp) OrderBook(pair string) (*OrderBookResult, error)
- func (b Bitstamp) SellLimitOrder(pair string, amount float64, price float64, ...) (*SellOrderResult, error)
- func (b Bitstamp) SellMarketOrder(pair string, amount float64) (*SellOrderResult, error)
- func (b Bitstamp) Ticker(pair string) (*TickerResult, error)
- type BuyOrderResult
- type ErrorResult
- type Event
- type Float
- type OpenOrder
- type OrderBookItem
- type OrderBookResult
- type SellOrderResult
- type TickerResult
- type UserTransactionType
- type WebSocket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountBalanceResult ¶
type AccountBalanceResult struct { UsdBalance float64 `json:"usd_balance,string"` BtcBalance float64 `json:"btc_balance,string"` EurBalance float64 `json:"eur_balance,string"` XrpBalance float64 `json:"xrp_balance,string"` LtcBalance float64 `json:"ltc_balance,string"` EthBalance float64 `json:"eth_balance,string"` BchBalance float64 `json:"bch_balance,string"` UsdReserved float64 `json:"usd_reserved,string"` BtcReserved float64 `json:"btc_reserved,string"` EurReserved float64 `json:"eur_reserved,string"` XrpReserved float64 `json:"xrp_reserved,string"` LtcReserved float64 `json:"ltc_reserved,string"` EthReserved float64 `json:"eth_reserved,string"` BchReserved float64 `json:"bch_reserved,string"` UsdAvailable float64 `json:"usd_available,string"` BtcAvailable float64 `json:"btc_available,string"` EurAvailable float64 `json:"eur_available,string"` XrpAvailable float64 `json:"xrp_available,string"` LtcAvailable float64 `json:"ltc_available,string"` EthAvailable float64 `json:"eth_available,string"` BchAvailable float64 `json:"bch_available,string"` BtcUsdFee float64 `json:"btcusd_fee,string"` BtcEurFee float64 `json:"btceur_fee,string"` EurUsdFee float64 `json:"eurusd_fee,string"` XrpUsdFee float64 `json:"xrpusd_fee,string"` XrpEurFee float64 `json:"xrpeur_fee,string"` XrpBtcFee float64 `json:"xrpbtc_fee,string"` LtcUsdFee float64 `json:"ltcusd_fee,string"` LtcEurFee float64 `json:"ltceur_fee,string"` LtcBtcFee float64 `json:"ltcbtc_fee,string"` EthUsdFee float64 `json:"ethusd_fee,string"` EthEurFee float64 `json:"etheur_fee,string"` EthBtcFee float64 `json:"ethbtc_fee,string"` BchUsdFee float64 `json:"bchusd_fee,string"` BchEurFee float64 `json:"bcheur_fee,string"` BchBtcFee float64 `json:"bchbtc_fee,string"` }
type AccountTransactionResult ¶
type AccountTransactionResult struct { DateTime string `json:"datetime"` Id int64 `json:"id"` Type UserTransactionType `json:"type"` Usd float64 `json:"usd"` Eur float64 `json:"eur"` Btc float64 `json:"btc"` Xrp float64 `json:"xrp"` Ltc float64 `json:"ltc"` Eth float64 `json:"eth"` BtcUsd float64 `json:"btc_usd"` UsdBtc float64 `json:"usd_btc"` Fee float64 `json:"fee"` OrderId int64 `json:"order_id"` }
type Bitstamp ¶
type Bitstamp struct {
// contains filtered or unexported fields
}
bitstamp holds credentials used to authorize private http calls
func NewBitstamp ¶
func (Bitstamp) AccountBalance ¶
func (b Bitstamp) AccountBalance() (*AccountBalanceResult, error)
func (Bitstamp) AccountTransactions ¶
func (b Bitstamp) AccountTransactions() ([]AccountTransactionResult, error)
func (Bitstamp) BuyLimitOrder ¶
func (Bitstamp) BuyMarketOrder ¶
func (b Bitstamp) BuyMarketOrder(pair string, amount float64) (*BuyOrderResult, error)
func (Bitstamp) CancelOrder ¶
func (Bitstamp) OpenOrders ¶
func (Bitstamp) SellLimitOrder ¶
func (Bitstamp) SellMarketOrder ¶
func (b Bitstamp) SellMarketOrder(pair string, amount float64) (*SellOrderResult, error)
type BuyOrderResult ¶
type ErrorResult ¶
type OrderBookItem ¶
func (*OrderBookItem) UnmarshalJSON ¶
func (o *OrderBookItem) UnmarshalJSON(data []byte) error
UnmarshalJSON takes a json array and converts it into an OrderBookItem.
type OrderBookResult ¶
type OrderBookResult struct { Timestamp string `json:"timestamp"` Bids []OrderBookItem `json:"bids"` Asks []OrderBookItem `json:"asks"` }
type SellOrderResult ¶
type TickerResult ¶
type TickerResult struct { Last float64 `json:"last,string"` High float64 `json:"high,string"` Low float64 `json:"low,string"` Vwap float64 `json:"vwap,string"` Volume float64 `json:"volume,string"` Bid float64 `json:"bid,string"` Ask float64 `json:"ask,string"` Timestamp string `json:"timestamp"` Open float64 `json:"open,string"` }
type UserTransactionType ¶
type UserTransactionType int8
const ( UserDeposit UserTransactionType = iota UserWithdrawal UserMarketTrade UserSubAccountTransfer )
func (UserTransactionType) String ¶
func (t UserTransactionType) String() string
func (*UserTransactionType) UnmarshalJSON ¶
func (t *UserTransactionType) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.