Versions in this module Expand all Collapse all v0 v0.0.4 Nov 20, 2021 Changes in this version + const ENDPOINT + type APIError struct + Message string + Status int + func (e APIError) Error() string + type Client struct + Auth *auth.Config + HTTPC *fasthttp.Client + HTTPTimeout time.Duration + func New(auth *auth.Config) *Client + func (p *Client) AcceptOpQuote(req *options.RequestForAcceptOpQuote) (*options.ResponseForAcceptOpQuote, error) + func (p *Client) BalanceSubAccount(req *subaccount.RequestForBalanceSubAccount) (*subaccount.ResponseForBalanceSubAccount, error) + func (p *Client) Balances(req *wallet.RequestForBalances) (*wallet.ResponseForBalances, error) + func (p *Client) BalancesAll(req *wallet.RequestForBalancesAll) (*wallet.ResponseForBalancesAll, error) + func (p *Client) CancelAll(req *orders.RequestForCancelAll) (*orders.ResponseForCancelAll, error) + func (p *Client) CancelByID(req *orders.RequestForCancelByID) (*orders.ResponseForCancelByID, error) + func (p *Client) CancelOpQuote(req *options.RequestForCancelOpQuote) (*options.ResponseForCancelOpQuote, error) + func (p *Client) CancelOpQuoteRequest(req *options.RequestForCancelOpQuoteRequest) (*options.ResponseForCancelOpQuoteRequest, error) + func (p *Client) Candles(req *markets.RequestForCandles) (*markets.ResponseForCandles, error) + func (p *Client) ChangeSubAccount(req *subaccount.RequestForChangeSubAccount) (*subaccount.ResponseForChangeSubAccount, error) + func (p *Client) Coins(req *wallet.RequestForCoins) (*wallet.ResponseForCoins, error) + func (p *Client) CreateOpQuoteRequest(req *options.RequestForCreateOpQuoteRequest) (*options.ResponseForCreateOpQuoteRequest, error) + func (p *Client) CreateSubAccount(req *subaccount.RequestForCreateSubAccount) (*subaccount.ResponseForCreateSubAccount, error) + func (p *Client) CreatedLvToken(req *leveraged.RequestForCreatedLvToken) (*leveraged.ResponseForCreatedLvToken, error) + func (p *Client) CreatedLvTokens(req *leveraged.RequestForCreatedLvTokens) (*leveraged.ResponseForCreatedLvTokens, error) + func (p *Client) DeleteSubAccount(req *subaccount.RequestForDeleteSubAccount) (*subaccount.ResponseForDeleteSubAccount, error) + func (p *Client) DepositAddress(req *wallet.RequestForDepositAddress) (*wallet.ResponseForDepositAddress, error) + func (p *Client) DepositHistories(req *wallet.RequestForDepositHistories) (*wallet.ResponseForDepositHistories, error) + func (p *Client) Fills(req *fills.Request) (*fills.Response, error) + func (p *Client) Funding(req *funding.Request) (*funding.Response, error) + func (p *Client) Future(req *futures.RequestForFuture) (*futures.ResponseForFuture, error) + func (p *Client) Futures(req *futures.RequestForFutures) (*futures.ResponseForFutures, error) + func (p *Client) GetBorrowHistory(req *spotmargin.RequestForBorrowHistory) (*spotmargin.ResponseForBorrowHistory, error) + func (p *Client) GetBorrowRates(req *spotmargin.RequestForBorrowRates) (*spotmargin.ResponseForBorrowRates, error) + func (p *Client) GetLendingHistory(req *spotmargin.RequestForLendingHistory) (*spotmargin.ResponseForLendingHistory, error) + func (p *Client) GetLendingInfo(req *spotmargin.RequestForLendingInfo) (*spotmargin.ResponseForLendingInfo, error) + func (p *Client) GetLendingRates(req *spotmargin.RequestForLendingRates) (*spotmargin.ResponseForLendingRates, error) + func (p *Client) Information(req *account.RequestForInformation) (*account.ResponseForInformation, error) + func (p *Client) Leverage(req *account.RequestForLeverage) (*account.ResponseForLeverage, error) + func (p *Client) LvBalances(req *leveraged.RequestForLvBalances) (*leveraged.ResponseForLvBalances, error) + func (p *Client) LvToken(req *leveraged.RequestForLvToken) (*leveraged.ResponseForLvToken, error) + func (p *Client) LvTokens(req *leveraged.RequestForLvTokens) (*leveraged.ResponseForLvTokens, error) + func (p *Client) Markets(req *markets.RequestForMarkets) (*markets.ResponseForMarkets, error) + func (p *Client) ModifyOpQuoteRequest(req *options.RequestForModifyOpQuoteRequest) (*options.ResponseForModifyOpQuoteRequest, error) + func (p *Client) ModifyOrder(req *orders.RequestForModifyOrder) (*orders.ResponseForModifyOrder, error) + func (p *Client) ModifyTriggerOrder(req *orders.RequestForModifyTriggerOrder) (*orders.ResponseForModifyTriggerOrder, error) + func (p *Client) MyOpQuoteRequest(req *options.RequestForMyOpQuoteRequest) (*options.ResponseForMyOpQuoteRequest, error) + func (p *Client) MyOpQuoteRequests(req *options.RequestForMyOpQuoteRequests) (*options.ResponseForMyOpQuoteRequests, error) + func (p *Client) MyOpQuotes(req *options.RequestForMyOpQuotes) (*options.ResponseForMyOpQuotes, error) + func (p *Client) OpFills(req *options.RequestForOpFills) (*options.ResponseForOpFills, error) + func (p *Client) OpPositions(req *options.RequestForOpPositions) (*options.ResponseForOpPositions, error) + func (p *Client) OpQuoteRequests(req *options.RequestForOpQuoteRequests) (*options.ResponseForOpQuoteRequests, error) + func (p *Client) OpTrades(req *options.RequestForOpTrades) (*options.ResponseForOpTrades, error) + func (p *Client) OpenOrder(req *orders.RequestForOpenOrder) (*orders.ResponseForOpenOrder, error) + func (p *Client) OpenTriggerOrders(req *orders.RequestForOpenTriggerOrders) (*orders.ResponseForOpenTriggerOrders, error) + func (p *Client) OrderHistories(req *orders.RequestForHistories) (*orders.ResponseForHistories, error) + func (p *Client) OrderStatus(req *orders.RequestForOrderStatus) (*orders.ResponseForOrderStatus, error) + func (p *Client) OrderTriggerHistories(req *orders.RequestForOrderTriggerHistories) (*orders.ResponseForOrderTriggerHistories, error) + func (p *Client) OrderTriggers(req *orders.RequestForOrderTriggers) (*orders.ResponseForOrderTriggers, error) + func (p *Client) Orderbook(req *markets.RequestForOrderbook) (*markets.ResponseForOrderbook, error) + func (p *Client) PlaceOrder(req *orders.RequestForPlaceOrder) (*orders.ResponseForPlaceOrder, error) + func (p *Client) PlaceTriggerOrder(req *orders.RequestForPlaceTriggerOrder) (*orders.ResponseForPlaceTriggerOrder, error) + func (p *Client) Positions(req *account.RequestForPositions) (*account.ResponseForPositions, error) + func (p *Client) Rates(req *futures.RequestForRates) (*futures.ResponseForRates, error) + func (p *Client) RedemptionLvToken(req *leveraged.RequestForRedemptionLvToken) (*leveraged.ResponseForRedemptionLvToken, error) + func (p *Client) RedemptionLvTokens(req *leveraged.RequestForRedemptionLvTokens) (*leveraged.ResponseForRedemptionLvTokens, error) + func (p *Client) Stats(req *futures.RequestForStats) (*futures.ResponseForStats, error) + func (p *Client) SubAccounts(req *subaccount.RequestForSubAccounts) (*subaccount.ResponseForSubAccounts, error) + func (p *Client) SubmitLendingOffer(req *spotmargin.RequestForLendingOffer) (*spotmargin.ResponseForLendingOffer, error) + func (p *Client) Trades(req *markets.RequestForTrades) (*markets.ResponseForTrades, error) + func (p *Client) TransferSubAccount(req *subaccount.RequestForTransferSubAccount) (*subaccount.ResponseForTransferSubAccount, error) + func (p *Client) Withdraw(req *wallet.RequestForWithdraw) (*wallet.ResponseForWithdraw, error) + func (p *Client) WithdrawHistories(req *wallet.RequestForWithdrawHistories) (*wallet.ResponseForWithdrawHistories, error) + type Requester interface + Method func() string + Path func() string + Payload func() []byte + Query func() string + type Response struct + Error string + Result interface{} + Success bool