Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // GetServerStatus GET /api/status GetServerStatus() (response []model.ServerStatusResponse, errs []error) // GetServerTime GET /api/servertime GetServerTime() (response string, errs []error) // GetSymbols GET /api/market/symbols GetSymbols() (response model.SymbolResponse, errs []error) // GetTicker GET /api/market/ticker GetTicker(sym string) (response map[string]model.TickerResponseResult, errs []error) // GetTrades GET /api/market/trades GetTrades(sym string, lmt int) (response model.TradeResponse, errs []error) // GetBids GET /api/market/bids GetBids(sym string, lmt int) (response model.BidsAskResponse, errs []error) // GetAsks GET /api/market/asks GetAsks(sym string, lmt int) (response model.BidsAskResponse, errs []error) // GetBooks GET /api/market/books GetBooks(sym string, lmt int) (response model.BooksResponse, errs []error) // GetTradingview GET /tradingview/history GetTradingview(sym string, frame, frm, lmt int) (response model.TradingviewResponse, errs []error) // GetDepth GET /api/market/depth GetDepth(sym string, lmt int) (response model.BooksResponse, errs []error) // WatchTicker get ticker streaming WatchTicker(ctx context.Context, operations func(conn *websocket.Conn)) // WatchTrade get trade match streaming WatchTrade(ctx context.Context, operations func(conn *websocket.Conn)) // Wallet POST /api/market/wallet : Get user available balances (for both available and reserved balances please use POST /api/market/balances). Wallet() (response model.WalletResponse, errs []error) // Balance POST /api/market/balances Balance() (response model.BalanceResponse, errs []error) // PlaceBid POST /api/market/place-bid PlaceBid(sym string, amt float64, rate float64, typ market.OrderType) (response model.PlaceBidResponse, errs []error) // PlaceAsk POST /api/market/place-ask PlaceAsk(sym string, amt float64, rate float64, typ market.OrderType) (response model.PlaceAskResponse, errs []error) // PlaceAskByFiat POST /api/market/place-ask-by-fiat PlaceAskByFiat(sym string, amt float64, rate float64, typ market.OrderType) (response model.PlaceAskByFiatResponse, errs []error) // CancelOrder POST /api/market/cancel-order CancelOrder(sym string, id int, sd market.MarketSide, hash string) (response model.CancelOrderResponse, errs []error) // MyOpenOrder POST /api/market/my-open-orders MyOpenOrder(sym string) (response model.MyOpenOrderResponse, errs []error) // MyOrderHistory POST /api/market/my-order-history MyOrderHistory(sym string, page int, lmt int, start int64, end int64) (response model.MyOpenOrderHistoryResponse, errs []error) // OrderInfo POST /api/market/order-info OrderInfo(sym string, id int, sd market.MarketSide, hash string) (response model.OrderInfoResponse, errs []error) // Addresses POST /api/crypto/addresses Addresses(page int, lmt int) (response model.CryptoAddressResponse, errs []error) // Withdraw POST /api/crypto/withdraw Withdraw(currency string, amt float64, adr string, memo string) (response model.CryptoWithdrawResponse, errs []error) // DepositHistory POST /api/crypto/deposit-history DepositHistory(page int, lmt int) (response model.CryptoDepositHistoryResponse, errs []error) // WithDrawHistory POST /api/crypto/withdraw-history WithDrawHistory(page int, lmt int) (response model.CryptoWithdrawHistoryResponse, errs []error) // GenerateAddress POST /api/crypto/generate-address GenerateAddress(sym string) (response model.GenerateAddressResponse, errs []error) // FiatAccounts POST /api/fiat/accounts FiatAccounts(page int, lmt int) (response model.FiatAccountResponse, errs []error) // FiatWithdraw POST /api/fiat/withdraw FiatWithdraw(id string, amt float32) (response model.FiatAccountWithdrawResponse, errs []error) // FiatDepositHistory POST /api/fiat/deposit-history FiatDepositHistory(page int, lmt int) (response model.FiatDepositHistoryResponse, errs []error) // FiatWithdrawHistory POST /api/fiat/withdraw-history FiatWithdrawHistory(page int, lmt int) (response model.FiatWithdrawHistoryResponse, errs []error) // WsToken POST /api/market/wstoken WsToken() (response model.WstokenResponse, errs []error) // UserLimit POST /api/user/limits UserLimit() (response model.UserLimitResponse, errs []error) // TradingCredit POST /api/user/trading-credits TradingCredit() (response model.TradingCreditsResponse, errs []error) }
Click to show internal directories.
Click to hide internal directories.