Documentation ¶
Index ¶
- type Client
- func (c *Client) CancelAnOrder(ctx context.Context, orderID uint64) (*models.Order, error)
- func (c *Client) CloseAllTrade(ctx context.Context, side string) ([]*models.Trade, error)
- func (c *Client) CloseLoanBid(ctx context.Context, loanBidID int) (*models.LoanBid, error)
- func (c *Client) CloseTrade(ctx context.Context, tradeID int, closedQuantity float64) (*models.Trade, error)
- func (c *Client) CreateAFiatAccount(ctx context.Context, currency string) (*models.Account, error)
- func (c *Client) CreateALoanBid(ctx context.Context, quantity, currency, rate string) (*models.LoanBid, error)
- func (c *Client) CreateAnOrder(ctx context.Context, orderType, side, quantity, price, priceRange string, ...) (*models.Order, error)
- func (c *Client) EditALiveOrder(ctx context.Context, orderID uint64, quantity, price string) (*models.Order, error)
- func (c *Client) GetATradingAccount(ctx context.Context, tradingAccountID int) (*models.TradingAccount, error)
- func (c *Client) GetAllAccountBalances(ctx context.Context) ([]*models.AccountBalance, error)
- func (c *Client) GetAnOrder(ctx context.Context, orderID uint64) (*models.Order, error)
- func (c *Client) GetAnOrderTrades(ctx context.Context, orderID uint64) ([]*models.Trade, error)
- func (c *Client) GetCryptoAccounts(ctx context.Context) ([]*models.CryptoAccount, error)
- func (c *Client) GetExecutions(ctx context.Context, productID int, limit int, page int) (*models.Executions, error)
- func (c *Client) GetExecutionsByTimestamp(ctx context.Context, productID int, limit int, timestamp int) ([]*models.ExecutionsModels, error)
- func (c *Client) GetFiatAccounts(ctx context.Context) ([]*models.Account, error)
- func (c *Client) GetInterestRates(ctx context.Context, currency string) (*models.InterestRates, error)
- func (c *Client) GetLoanBids(ctx context.Context, currency string) (*models.LoanBids, error)
- func (c *Client) GetLoans(ctx context.Context, currency string) (*models.Loans, error)
- func (c *Client) GetOrderBook(ctx context.Context, productID int, full bool) (*models.PriceLevels, error)
- func (c *Client) GetOrders(ctx context.Context, productID, withDetails int, ...) (*models.Orders, error)
- func (c *Client) GetOwnExecutions(ctx context.Context, productID int) (*models.Executions, error)
- func (c *Client) GetProduct(ctx context.Context, productID int) (*models.Product, error)
- func (c *Client) GetProducts(ctx context.Context) ([]*models.Product, error)
- func (c *Client) GetTrades(ctx context.Context, fundingCurrency, status string) (*models.Trades, error)
- func (c *Client) GetTradesLoans(ctx context.Context, tradeID int) ([]*models.Loan, error)
- func (c *Client) GetTradingAccounts(ctx context.Context) ([]*models.TradingAccount, error)
- func (c *Client) UpdateALoan(ctx context.Context, loanID int, fundReloaned bool) (*models.Loan, error)
- func (c *Client) UpdateLeverageLevel(ctx context.Context, tradeAccountID, leverageLevel int) (*models.TradingAccount, error)
- func (c *Client) UpdateTrade(ctx context.Context, tradeID, stopLoss, takeProfit int) (*models.Trade, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { URL *url.URL ApiTokenID string ApiSecret string HTTPClient *http.Client Logger *log.Logger // contains filtered or unexported fields }
func (*Client) CancelAnOrder ¶
func (*Client) CloseAllTrade ¶
func (*Client) CloseLoanBid ¶
func (*Client) CloseTrade ¶
func (*Client) CreateAFiatAccount ¶
func (*Client) CreateALoanBid ¶
func (*Client) CreateAnOrder ¶
func (*Client) EditALiveOrder ¶
func (*Client) GetATradingAccount ¶
func (*Client) GetAllAccountBalances ¶
func (*Client) GetAnOrder ¶
func (*Client) GetAnOrderTrades ¶
func (*Client) GetCryptoAccounts ¶
func (*Client) GetExecutions ¶
func (*Client) GetExecutionsByTimestamp ¶
func (*Client) GetFiatAccounts ¶
func (*Client) GetInterestRates ¶
func (*Client) GetLoanBids ¶
func (*Client) GetOrderBook ¶
func (*Client) GetOwnExecutions ¶
func (*Client) GetProduct ¶
func (*Client) GetProducts ¶
func (*Client) GetTradesLoans ¶
func (*Client) GetTradingAccounts ¶
func (*Client) UpdateALoan ¶
func (*Client) UpdateLeverageLevel ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.