Created: 2020-07-20 10:37:13,
Updated on:
2020-07-20 10:44:12
2
1465
FTX used aggregates
The API documentation address is:https://docs.ftx.com/#rest-apiInformation about the contract:https://help.ftx.com/hc/zh-cn/articles/360032938532-%E5%AE%8C%E6%95%B4%E5%90%88%E7%BA%A6%E8%A6%81%E7%B4%A0%E5%8F%8A%E5%8F%82%E8%80%83%E5%85%AC%E5%BC%8F
The cash
In addition, it is necessary to distinguish between spot and futures, each of which is packaged as a separate exchange object.API KEY
It's a common practice.
Futures
- The contract is settled using USD, using a stable currency deposit, and after the rollover, the exchange credits the futures account with USD, the asset is Balance, i.e. the contract is a gold-based contract (non-currency-based contract, the currency asset is automatically discounted to USD).
- The amount of the contract can be 0.001 depending on the currency pair.
- The trading pair is standardised in XXX_USD.
- The contract code is:
This is a permanent contract:
swap
Quarterly contract:quarter
The contract for the next quarter:next_quarter
The contract code for the volatility rate is:BTC-MOVE-0711
Options
- When adding an exchange, add:
Futures_FTX
。
- The option contract code is:
For example:
BTC-20201021-9200-P
, refers to a contract for BTC on October 21, 2020, with a strike price of 9200, and an option for PUT (a bear option).
- FTX options do not have a market interface, but you can access the current option request, place orders and trade counterparties for the request. See the exchange's API documentation.
- Do not support
GetOrder
You can check the order details of an ID.
- Options Other interfaces available
exchange.IO("api", ...)
Access, see the API documentation for details.
If you are an older version of the host, you need to update the host.