Documentation ¶
Overview ¶
All return values from Bitbank.cc is set in this package models.
Index ¶
- type Account
- type Asset
- type Assets
- type AssetsData
- type Candlestick
- type Candlesticks
- type CandlesticksData
- type Depth
- func (p *Depth) GetAsksFloat64() [][]float64
- func (p *Depth) GetBidsFloat64() [][]float64
- func (p *Depth) SortAsksByPrice(order string) [][]float64
- func (p *Depth) SortAsksByQuontity() [][]float64
- func (p *Depth) SortBidsByPrice(order string) [][]float64
- func (p *Depth) SortBidsByQuontity() [][]float64
- type DepthData
- type Order
- type OrderData
- type Orders
- type OrdersData
- type RequestWithdrawal
- type RequestWithdrawalData
- type Ticker
- type TickerData
- type Trade
- type Trades
- type TradesData
- type Transaction
- type Transactions
- type TransactionsData
- type WithdrawalAccounts
- type WithdrawalAccountsData
- type WithdrawalFee
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct { Asset string `json:"asset"` AmountPrecision int `json:"amount_precision"` OnhandAmount string `json:"onhand_amount"` LockedAmount string `json:"locked_amount"` FreeAmount string `json:"free_amount"` StopDeposit bool `json:"stop_deposit"` StopWithdrawal bool `json:"stop_withdrawal"` // withdrawl_fee is either a string or object // "withdrawal_fee": { // "threshold": "30000.0000", // "under": "540.0000", // "over": "756.0000" // } // or // "withdrawal_fee": "0.00100000" WithdrawalFee *WithdrawalFee `json:"withdrawal_fee"` }
type Assets ¶
type Assets struct { Success int `json:"success"` Data *AssetsData `json:"data"` }
type AssetsData ¶
type AssetsData struct {
Assets []*Asset `json:"assets"`
}
type Candlestick ¶
type Candlesticks ¶
type Candlesticks struct { Success int `json:"success"` Data *CandlesticksData `json:"data"` }
type CandlesticksData ¶
type CandlesticksData struct {
Candlesticks []*Candlestick `json:"candlestick"`
}
type Depth ¶
Main struct of getDepth.
Success 0:fail 1:success
func (*Depth) GetAsksFloat64 ¶
Return Asks in type of float64
func (*Depth) GetBidsFloat64 ¶
Return Bids in type of float64
func (*Depth) SortAsksByPrice ¶
Return Asks in type of float64, Sorted by Price. you can set order with "asc" or "desc".
func (*Depth) SortAsksByQuontity ¶
Return Sorted(Quontity asc) Asks in type of float64
func (*Depth) SortBidsByPrice ¶
Return Bids in type of float64, Sorted by Price. you can set order with "asc" or "desc".
func (*Depth) SortBidsByQuontity ¶
Return Sorted(Quontity asc) Bid in type of float64
type OrderData ¶
type OrderData struct { OrderID int `json:"order_id"` Pair string `json:"pair"` Side string `json:"side"` Type string `json:"type"` StartAmount string `json:"start_amount"` RemainingAmount string `json:"remaining_amount"` ExecutedAmount string `json:"executed_amount"` Price string `json:"price"` AveragePrice string `json:"average_price"` OrderedAt int `json:"ordered_at"` Status string `json:"status"` }
type Orders ¶
type Orders struct { Success int `json:"success"` Data *OrdersData `json:"data"` }
type OrdersData ¶
type OrdersData struct {
Orders []*OrderData `json:"orders"`
}
type RequestWithdrawal ¶
type RequestWithdrawal struct { Success int `json:"success"` Data *RequestWithdrawalData `json:"data"` }
type RequestWithdrawalData ¶
type Ticker ¶
type Ticker struct { Success int `json:"success"` Data *TickerData `json:"data"` }
type TickerData ¶
type Trade ¶
type Trade struct { TradeID int `json:"trade_id"` Pair string `json:"pair"` OrderID int `json:"order_id"` Side string `json:"side"` Type string `json:"type"` Amount string `json:"amount"` Price string `json:"price"` MakerTaker string `json:"maker_taker"` FeeAmountBase string `json:"fee_amount_base"` FeeAmountQuote string `json:"fee_amount_quote"` ExecutedAt int `json:"executed_at"` }
type Trades ¶
type Trades struct { Success int `json:"success"` Data *TradesData `json:"data"` }
type TradesData ¶
type TradesData struct {
Trades []*Trade `json:"trades"`
}
type Transaction ¶
type Transactions ¶
type Transactions struct { Success int `json:"success"` Data *TransactionsData `json:"data"` }
type TransactionsData ¶
type TransactionsData struct {
Transactions []*Transaction `json:"transactions"`
}
type WithdrawalAccounts ¶
type WithdrawalAccounts struct { Success int `json:"success"` Data *WithdrawalAccountsData `json:"data"` }
type WithdrawalAccountsData ¶
type WithdrawalAccountsData struct {
Accounts []*Account `json:"accounts"`
}
type WithdrawalFee ¶
func (*WithdrawalFee) MarshalJSON ¶
func (w *WithdrawalFee) MarshalJSON() ([]byte, error)
func (*WithdrawalFee) UnmarshalJSON ¶
func (w *WithdrawalFee) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.