Documentation ¶
Index ¶
- Constants
- type API
- func (api *API) AccountStatus() (*AccountData, error)
- func (api *API) AvailableBooks() (Books, error)
- func (api *API) Balance() (Balances, error)
- func (api *API) Fees() (*Fees, error)
- func (api *API) OrderBook(book string, aggregate bool) (*OrderBook, error)
- func (api *API) Ticker(book string) (*Ticker, error)
- func (api *API) Tickers() (Tickers, error)
- func (api *API) Trades(book string, marker string, sort string, limit int) (*Trades, error)
- type AccountData
- type AccountStatusResponse
- type AvailableBookResponse
- type Balance
- type BalanceResponse
- type Balances
- type Book
- type Books
- type Error
- type Fee
- type Fees
- type FeesResponse
- type Order
- type OrderBook
- type OrderBookResponse
- type Ticker
- type TickerResponse
- type Tickers
- type TickersResponse
- type Trade
- type Trades
- type TradesResponse
Constants ¶
View Source
const (
BASEURL = "https://api.bitso.com/v3/"
)
View Source
const VERSION = "0.1.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
func (*API) AccountStatus ¶
func (api *API) AccountStatus() (*AccountData, error)
func (*API) AvailableBooks ¶
type AccountData ¶
type AccountData struct { ClientID string `json:"client_id"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Status string `json:"status"` DailyLimit float64 `json:"daily_limit,string"` MonthlyLimit float64 `json:"monthly_limit,string"` DailyRemaining float64 `json:"daily_remaining,string"` MonthlyRemaining float64 `json:"monthly_remaining,string"` CashDepositAllowance float64 `json:"cash_deposit_allowance,string"` CellphoneNumber string `json:"cellphone_number"` CellphoneNumberStored string `json:"cellphone_number_stored"` EmailStored string `json:"email_stored"` OfficialID string `json:"official_id"` ProofOfResidency string `json:"proof_of_residency"` SignedContract string `json:"signed_contract"` OriginOfFunds string `json:"origin_of_funds"` }
type AccountStatusResponse ¶
type AccountStatusResponse struct { Success bool `json:"success"` Error Error `json:"error,omitempty"` AccountData AccountData `json:"payload,omitempty"` }
type AvailableBookResponse ¶
type BalanceResponse ¶
type Book ¶
type Book struct { Book string `json:"book"` MinimumAmount float64 `json:"minimum_amount,string"` MaximumAmount float64 `json:"maximum_amount,string"` MinimumPrice float64 `json:"minimum_price,string"` MaximumPrice float64 `json:"maximum_price,string"` MinimumValue float64 `json:"minimum_value,string"` MaximumValue float64 `json:"maximum_value,string"` }
type Fees ¶
type Fees struct { Fees []Fee `json:"fees"` WithdrawalFees interface{} `json:"withdrawal_fees"` }
type FeesResponse ¶
type OrderBookResponse ¶
type Ticker ¶
type Ticker struct { Book string `json:"book"` Volume float64 `json:"volume,string"` High float64 `json:"high,string"` Last float64 `json:"last,string"` Low float64 `json:"low,string"` Vwap float64 `json:"vwap,string"` Ask float64 `json:"ask,string"` Bid float64 `json:"bid,string"` CreatedAt time.Time `json:"created_at"` }
type TickerResponse ¶
type TickersResponse ¶
type TradesResponse ¶
Source Files ¶
- bitso.go
- private_accountbalance.go
- private_accountstatus.go
- private_bankcodes.go
- private_cancelorder.go
- private_cryptowithdrawals.go
- private_debitcardwithdrawal.go
- private_documentupload.go
- private_fees.go
- private_fundingdestination.go
- private_fundings.go
- private_ledger.go
- private_lookuporders.go
- private_openorders.go
- private_phoneregistration.go
- private_phoneverification.go
- private_phonewithdrawal.go
- private_placeorder.go
- private_speiwithdrawals.go
- private_usertrades.go
- private_withdrawals.go
- public_availablebooks.go
- public_orderbook.go
- public_ticker.go
- public_trades.go
- remittance_cancelremittance.go
- remittance_changebeneficiaryname.go
- remittance_changebeneficiaryphone.go
- remittance_changesendername.go
- remittance_createremittance.go
- remittance_payoutlocations.go
- transfer_createtransfer.go
- transfer_currentoutlets.go
- transfer_requestquote.go
- transfer_reviewtransfer.go
- util.go
- webhook_fundings.go
- webhook_registerurl.go
- webhook_withdrawals.go
Click to show internal directories.
Click to hide internal directories.