Documentation ¶
Index ¶
- Constants
- type FtxClient
- func (client *FtxClient) CancelAllOrders() (Response, error)
- func (client *FtxClient) CancelOrder(orderId int64) (Response, error)
- func (client *FtxClient) CancelTriggerOrder(orderId int64) (Response, error)
- func (client *FtxClient) ChangeSubaccountName(nickname string, newNickname string) (Response, error)
- func (client *FtxClient) CreateSubaccount(nickname string) (Subaccount, error)
- func (client *FtxClient) DeleteSubaccount(nickname string) (Response, error)
- func (client *FtxClient) GetHistoricalPriceLatest(market string, resolution int64, limit int64) (HistoricalPrices, error)
- func (client *FtxClient) GetHistoricalPrices(market string, resolutionSeconds int64, limit int64, startTime int64, ...) (HistoricalPrices, error)
- func (client *FtxClient) GetOpenOrders(market string) (OpenOrders, error)
- func (client *FtxClient) GetOpenTriggerOrders(market string) (OpenTriggerOrders, error)
- func (client *FtxClient) GetOpenTriggerOrdersOriginal(market string, _type string) (OpenTriggerOrders, error)
- func (client *FtxClient) GetOrderHistory(market string, startTime float64, endTime float64, limit int64) (OrderHistory, error)
- func (client *FtxClient) GetPositions(showAvgPrice bool) (Positions, error)
- func (client *FtxClient) GetSubaccountBalances(nickname string) (SubaccountBalances, error)
- func (client *FtxClient) GetSubaccounts() (SubaccountsList, error)
- func (client *FtxClient) GetTrades(market string, limit int64, startTime int64, endTime int64) (Trades, error)
- func (client *FtxClient) GetTriggerOrdersHistory(market string, startTime float64, endTime float64, limit int64) (TriggerOrderHistory, error)
- func (client *FtxClient) GetTriggers(orderId string) (Triggers, error)
- func (client *FtxClient) ModifyTriggerOrder(orderId int64, size float64, triggerPrice float64) (NewTriggerOrderResponse, error)
- func (client *FtxClient) PlaceMarketOrder(market string, side string, _type string, size float64) (NewOrderResponse, error)
- func (client *FtxClient) PlaceOrder(market string, side string, price float64, _type string, size float64, ...) (NewOrderResponse, error)
- func (client *FtxClient) PlaceTriggerOrder(market string, side string, size float64, _type string, reduceOnly bool, ...) (NewTriggerOrderResponse, error)
- func (client *FtxClient) TransferSubaccounts(coin string, size float64, source string, destination string) (TransferSubaccounts, error)
- type HistoricalPrices
- type ModifyTriggerOrder
- type NewOrder
- type NewOrderResponse
- type NewTriggerOrder
- type NewTriggerOrderResponse
- type OpenOrders
- type OpenTriggerOrders
- type OrderHistory
- type Positions
- type Response
- type Subaccount
- type SubaccountBalances
- type SubaccountsList
- type Trades
- type TransferSubaccounts
- type TriggerOrderHistory
- type Triggers
Constants ¶
View Source
const URL = "https://ftx.com/api/"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FtxClient ¶
func (*FtxClient) CancelAllOrders ¶
func (*FtxClient) CancelOrder ¶
func (*FtxClient) CancelTriggerOrder ¶
func (*FtxClient) ChangeSubaccountName ¶
func (*FtxClient) CreateSubaccount ¶
func (client *FtxClient) CreateSubaccount(nickname string) (Subaccount, error)
func (*FtxClient) DeleteSubaccount ¶
func (*FtxClient) GetHistoricalPriceLatest ¶
func (client *FtxClient) GetHistoricalPriceLatest( market string, resolution int64, limit int64, ) (HistoricalPrices, error)
Name Type Value Description market_name string BTC-0628 name of the market resolution number 300 window length in seconds. options: 15, 60, 300, 900, 3600, 14400, 86400, or any multiple of 86400 up to 30*86400 start_time number 1559881511 optional end_time number 1559881711 optional
func (*FtxClient) GetHistoricalPrices ¶
func (*FtxClient) GetOpenOrders ¶
func (client *FtxClient) GetOpenOrders(market string) (OpenOrders, error)
func (*FtxClient) GetOpenTriggerOrders ¶
func (client *FtxClient) GetOpenTriggerOrders(market string) (OpenTriggerOrders, error)
func (*FtxClient) GetOpenTriggerOrdersOriginal ¶
func (client *FtxClient) GetOpenTriggerOrdersOriginal(market string, _type string) (OpenTriggerOrders, error)
func (*FtxClient) GetOrderHistory ¶
func (*FtxClient) GetPositions ¶
func (*FtxClient) GetSubaccountBalances ¶
func (client *FtxClient) GetSubaccountBalances(nickname string) (SubaccountBalances, error)
func (*FtxClient) GetSubaccounts ¶
func (client *FtxClient) GetSubaccounts() (SubaccountsList, error)
func (*FtxClient) GetTriggerOrdersHistory ¶
func (*FtxClient) GetTriggers ¶
func (*FtxClient) ModifyTriggerOrder ¶
func (*FtxClient) PlaceMarketOrder ¶
func (*FtxClient) PlaceOrder ¶
func (*FtxClient) PlaceTriggerOrder ¶
func (*FtxClient) TransferSubaccounts ¶
type HistoricalPrices ¶
type HistoricalPrices structs.HistoricalPrices
type ModifyTriggerOrder ¶
type ModifyTriggerOrder structs.ModifyTriggerOrder
type NewOrderResponse ¶
type NewOrderResponse structs.NewOrderResponse
type NewTriggerOrder ¶
type NewTriggerOrder structs.NewTriggerOrder
type NewTriggerOrderResponse ¶
type NewTriggerOrderResponse structs.NewTriggerOrderResponse
type OpenOrders ¶
type OpenOrders structs.OpenOrders
type OpenTriggerOrders ¶
type OpenTriggerOrders structs.OpenTriggerOrders
type OrderHistory ¶
type OrderHistory structs.OrderHistory
type Subaccount ¶
type Subaccount structs.Subaccount
type SubaccountBalances ¶
type SubaccountBalances structs.SubaccountBalances
type SubaccountsList ¶
type SubaccountsList structs.SubaccountsList
type TransferSubaccounts ¶
type TransferSubaccounts structs.TransferSubaccounts
type TriggerOrderHistory ¶
type TriggerOrderHistory structs.TriggerOrderHistory
Source Files ¶
Click to show internal directories.
Click to hide internal directories.