Documentation ¶
Index ¶
- Constants
- type 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) Information(req *account.RequestForInformation) (*account.ResponseForInformation, error)
- func (p *Client) Leverage(req *account.RequestForLeverage) (*account.ResponseForLeverage, error)
- func (p *Client) LoginStatus(req *account.RequestForLoginStatus) (*account.ResponseForLoginStatus, 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) 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
- type Response
Constants ¶
View Source
const ENDPOINT = "https://ftx.com/api"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) AcceptOpQuote ¶
func (p *Client) AcceptOpQuote(req *options.RequestForAcceptOpQuote) (*options.ResponseForAcceptOpQuote, error)
func (*Client) BalanceSubAccount ¶
func (p *Client) BalanceSubAccount(req *subaccount.RequestForBalanceSubAccount) (*subaccount.ResponseForBalanceSubAccount, error)
func (*Client) Balances ¶
func (p *Client) Balances(req *wallet.RequestForBalances) (*wallet.ResponseForBalances, error)
func (*Client) BalancesAll ¶
func (p *Client) BalancesAll(req *wallet.RequestForBalancesAll) (*wallet.ResponseForBalancesAll, error)
func (*Client) CancelAll ¶
func (p *Client) CancelAll(req *orders.RequestForCancelAll) (*orders.ResponseForCancelAll, error)
func (*Client) CancelByID ¶
func (p *Client) CancelByID(req *orders.RequestForCancelByID) (*orders.ResponseForCancelByID, error)
CancelByID do cancel with triggerOrderID > clientID > orderID.
func (*Client) CancelOpQuote ¶
func (p *Client) CancelOpQuote(req *options.RequestForCancelOpQuote) (*options.ResponseForCancelOpQuote, error)
func (*Client) CancelOpQuoteRequest ¶
func (p *Client) CancelOpQuoteRequest(req *options.RequestForCancelOpQuoteRequest) (*options.ResponseForCancelOpQuoteRequest, error)
func (*Client) Candles ¶
func (p *Client) Candles(req *markets.RequestForCandles) (*markets.ResponseForCandles, error)
func (*Client) ChangeSubAccount ¶
func (p *Client) ChangeSubAccount(req *subaccount.RequestForChangeSubAccount) (*subaccount.ResponseForChangeSubAccount, error)
func (*Client) Coins ¶
func (p *Client) Coins(req *wallet.RequestForCoins) (*wallet.ResponseForCoins, error)
func (*Client) CreateOpQuoteRequest ¶
func (p *Client) CreateOpQuoteRequest(req *options.RequestForCreateOpQuoteRequest) (*options.ResponseForCreateOpQuoteRequest, error)
func (*Client) CreateSubAccount ¶
func (p *Client) CreateSubAccount(req *subaccount.RequestForCreateSubAccount) (*subaccount.ResponseForCreateSubAccount, error)
func (*Client) CreatedLvToken ¶
func (p *Client) CreatedLvToken(req *leveraged.RequestForCreatedLvToken) (*leveraged.ResponseForCreatedLvToken, error)
func (*Client) CreatedLvTokens ¶
func (p *Client) CreatedLvTokens(req *leveraged.RequestForCreatedLvTokens) (*leveraged.ResponseForCreatedLvTokens, error)
func (*Client) DeleteSubAccount ¶
func (p *Client) DeleteSubAccount(req *subaccount.RequestForDeleteSubAccount) (*subaccount.ResponseForDeleteSubAccount, error)
func (*Client) DepositAddress ¶
func (p *Client) DepositAddress(req *wallet.RequestForDepositAddress) (*wallet.ResponseForDepositAddress, error)
func (*Client) DepositHistories ¶
func (p *Client) DepositHistories(req *wallet.RequestForDepositHistories) (*wallet.ResponseForDepositHistories, error)
func (*Client) Future ¶
func (p *Client) Future(req *futures.RequestForFuture) (*futures.ResponseForFuture, error)
func (*Client) Futures ¶
func (p *Client) Futures(req *futures.RequestForFutures) (*futures.ResponseForFutures, error)
func (*Client) Information ¶
func (p *Client) Information(req *account.RequestForInformation) (*account.ResponseForInformation, error)
func (*Client) Leverage ¶
func (p *Client) Leverage(req *account.RequestForLeverage) (*account.ResponseForLeverage, error)
func (*Client) LoginStatus ¶
func (p *Client) LoginStatus(req *account.RequestForLoginStatus) (*account.ResponseForLoginStatus, error)
func (*Client) LvBalances ¶
func (p *Client) LvBalances(req *leveraged.RequestForLvBalances) (*leveraged.ResponseForLvBalances, error)
func (*Client) LvToken ¶
func (p *Client) LvToken(req *leveraged.RequestForLvToken) (*leveraged.ResponseForLvToken, error)
func (*Client) LvTokens ¶
func (p *Client) LvTokens(req *leveraged.RequestForLvTokens) (*leveraged.ResponseForLvTokens, error)
func (*Client) Markets ¶
func (p *Client) Markets(req *markets.RequestForMarkets) (*markets.ResponseForMarkets, error)
func (*Client) ModifyOpQuoteRequest ¶
func (p *Client) ModifyOpQuoteRequest(req *options.RequestForModifyOpQuoteRequest) (*options.ResponseForModifyOpQuoteRequest, error)
func (*Client) ModifyOrder ¶
func (p *Client) ModifyOrder(req *orders.RequestForModifyOrder) (*orders.ResponseForModifyOrder, error)
ModifyOrder use ClientID or OrderID, prioritize ClientID if has ClientID. if has clientID, use by_client_id modify. else if has orderID, use modify. the order's queue priority will be reset, and the order ID of the modified order will be different from that of the original order.
func (*Client) ModifyTriggerOrder ¶
func (p *Client) ModifyTriggerOrder(req *orders.RequestForModifyTriggerOrder) (*orders.ResponseForModifyTriggerOrder, error)
func (*Client) MyOpQuoteRequest ¶
func (p *Client) MyOpQuoteRequest(req *options.RequestForMyOpQuoteRequest) (*options.ResponseForMyOpQuoteRequest, error)
func (*Client) MyOpQuoteRequests ¶
func (p *Client) MyOpQuoteRequests(req *options.RequestForMyOpQuoteRequests) (*options.ResponseForMyOpQuoteRequests, error)
func (*Client) MyOpQuotes ¶
func (p *Client) MyOpQuotes(req *options.RequestForMyOpQuotes) (*options.ResponseForMyOpQuotes, error)
func (*Client) OpFills ¶
func (p *Client) OpFills(req *options.RequestForOpFills) (*options.ResponseForOpFills, error)
func (*Client) OpPositions ¶
func (p *Client) OpPositions(req *options.RequestForOpPositions) (*options.ResponseForOpPositions, error)
func (*Client) OpQuoteRequests ¶
func (p *Client) OpQuoteRequests(req *options.RequestForOpQuoteRequests) (*options.ResponseForOpQuoteRequests, error)
func (*Client) OpTrades ¶
func (p *Client) OpTrades(req *options.RequestForOpTrades) (*options.ResponseForOpTrades, error)
func (*Client) OpenOrder ¶
func (p *Client) OpenOrder(req *orders.RequestForOpenOrder) (*orders.ResponseForOpenOrder, error)
func (*Client) OpenTriggerOrders ¶
func (p *Client) OpenTriggerOrders(req *orders.RequestForOpenTriggerOrders) (*orders.ResponseForOpenTriggerOrders, error)
func (*Client) OrderHistories ¶
func (p *Client) OrderHistories(req *orders.RequestForHistories) (*orders.ResponseForHistories, error)
func (*Client) OrderStatus ¶
func (p *Client) OrderStatus(req *orders.RequestForOrderStatus) (*orders.ResponseForOrderStatus, error)
func (*Client) OrderTriggerHistories ¶
func (p *Client) OrderTriggerHistories(req *orders.RequestForOrderTriggerHistories) (*orders.ResponseForOrderTriggerHistories, error)
func (*Client) OrderTriggers ¶
func (p *Client) OrderTriggers(req *orders.RequestForOrderTriggers) (*orders.ResponseForOrderTriggers, error)
func (*Client) Orderbook ¶
func (p *Client) Orderbook(req *markets.RequestForOrderbook) (*markets.ResponseForOrderbook, error)
func (*Client) PlaceOrder ¶
func (p *Client) PlaceOrder(req *orders.RequestForPlaceOrder) (*orders.ResponseForPlaceOrder, error)
send order ¶
func (*Client) PlaceTriggerOrder ¶
func (p *Client) PlaceTriggerOrder(req *orders.RequestForPlaceTriggerOrder) (*orders.ResponseForPlaceTriggerOrder, error)
func (*Client) Positions ¶
func (p *Client) Positions(req *account.RequestForPositions) (*account.ResponseForPositions, error)
func (*Client) Rates ¶
func (p *Client) Rates(req *futures.RequestForRates) (*futures.ResponseForRates, error)
func (*Client) RedemptionLvToken ¶
func (p *Client) RedemptionLvToken(req *leveraged.RequestForRedemptionLvToken) (*leveraged.ResponseForRedemptionLvToken, error)
func (*Client) RedemptionLvTokens ¶
func (p *Client) RedemptionLvTokens(req *leveraged.RequestForRedemptionLvTokens) (*leveraged.ResponseForRedemptionLvTokens, error)
func (*Client) Stats ¶
func (p *Client) Stats(req *futures.RequestForStats) (*futures.ResponseForStats, error)
func (*Client) SubAccounts ¶
func (p *Client) SubAccounts(req *subaccount.RequestForSubAccounts) (*subaccount.ResponseForSubAccounts, error)
SubAccount ¶
func (*Client) Trades ¶
func (p *Client) Trades(req *markets.RequestForTrades) (*markets.ResponseForTrades, error)
func (*Client) TransferSubAccount ¶
func (p *Client) TransferSubAccount(req *subaccount.RequestForTransferSubAccount) (*subaccount.ResponseForTransferSubAccount, error)
func (*Client) Withdraw ¶
func (p *Client) Withdraw(req *wallet.RequestForWithdraw) (*wallet.ResponseForWithdraw, error)
func (*Client) WithdrawHistories ¶
func (p *Client) WithdrawHistories(req *wallet.RequestForWithdrawHistories) (*wallet.ResponseForWithdrawHistories, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.