[Add] 增加OkexFutureSymbol类以表示可支持的合约(无法直接从API查询)

This commit is contained in:
nanoric 2018-10-11 23:09:25 -04:00
parent 6e0e1c116b
commit 8c971c7d81
2 changed files with 11 additions and 0 deletions

View File

@ -13,6 +13,15 @@ class _OkexFutureCustomExtra(object):
self.onFailed = onFailed
self.onSuccess = onSuccess
self.extra = extra
########################################################################
class OkexFutureSymbol(Enum):
BTC = 'btc_usd'
LTC = 'ltc_usd'
ETH = 'eth_usd'
ETC = 'etc_usd'
BCH = 'bch_usd'
########################################################################

View File

@ -0,0 +1,2 @@
from .OkexFutureApi import OkexFutureSymbol, OkexFutureContractType, OkexFutureOrder, OkexFutureOrderStatus, OkexFuturePosition, \
OkexFuturePositionDetail, OkexFuturePriceType, OkexFutureRestClient, OkexFutureUserInfo