class SectionType(DjangoChoices): AgriculturalCommodities = C(value='1AgriculturalCommodities', label='农产品') NonAgriculturalCommodities = C(value='2NonAgriculturalCommodities', label='工业品') Equities = C(value='3Equities', label='股指') Rates = C(value='4Rates', label='利率') Currencies = C(value='5Currencies', label='货币')
class OrderStatus(DjangoChoices): # 报单状态 AllTraded = C(value=b'0'[0], label='全部成交') PartTradedQueueing = C(value=b'1'[0], label='部分成交还在队列中') PartTradedNotQueueing = C(value=b'2'[0], label='部分成交不在队列中') NoTradeQueueing = C(value=b'3'[0], label='未成交还在队列中') NoTradeNotQueueing = C(value=b'4'[0], label='未成交不在队列中') Canceled = C(value=b'5'[0], label='撤单') Unknown = C(value=b'a'[0], label='未知') NotTouched = C(value=b'b'[0], label='尚未触发') Touched = C(value=b'c'[0], label='已触发')
class OrderStatus(DjangoChoices): AllTraded = C(value='0', label='全部成交') PartTradedQueueing = C(value='1', label='部分成交还在队列中') PartTradedNotQueueing = C(value='2', label='部分成交不在队列中') NoTradeQueueing = C(value='3', label='未成交还在队列中') NoTradeNotQueueing = C(value='4', label='未成交不在队列中') Canceled = C(value='5', label='撤单') Unknown = C(value='a', label='未知') NotTouched = C(value='b', label='尚未触发') Touched = C(value='c', label='已触发')
class OrderSubmitStatus(DjangoChoices): # 报单提交状态 InsertSubmitted = C(value=b'0'[0], label='已经提交') CancelSubmitted = C(value=b'1'[0], label='撤单已经提交') ModifySubmitted = C(value=b'2'[0], label='修改已经提交') Accepted = C(value=b'3'[0], label='已经接受') InsertRejected = C(value=b'4'[0], label='报单已经被拒绝') CancelRejected = C(value=b'5'[0], label='撤单已经被拒绝') ModifyRejected = C(value=b'6'[0], label='改单已经被拒绝')
class OffsetFlag(DjangoChoices): # 开平标志 Open = C(label='开', value=b'0'[0]) Close = C(label='平', value=b'1'[0]) ForceClose = C(label='强平', value=b'2'[0]) CloseToday = C(label='平今', value=b'3'[0]) CloseYesterday = C(label='平昨', value=b'4'[0]) ForceOff = C(label='强减', value=b'5'[0]) LocalForceClose = C(label='本地强平', value=b'6'[0])
class CombOffsetFlag(DjangoChoices): # 订单开平标志 Open = C(label='开', value='0') Close = C(label='平', value='1') ForceClose = C(label='强平', value='2') CloseToday = C(label='平', value='3') CloseYesterday = C(label='平昨', value='4') ForceOff = C(label='强减', value='5') LocalForceClose = C(label='本地强平', value='6')
class SignalType(DjangoChoices): ROLL_CLOSE = C(label='换月平旧') ROLL_OPEN = C(label='换月开新') BUY = C(label='买开') SELL_SHORT = C(label='卖开') SELL = C(label='卖平') BUY_COVER = C(label='买平')
class Status(DjangoChoices): Pending = C('pending', 'Pending processing') UnrecognizedDomain = C('unrecognized-domain', 'Unrecognized domain') UnrecognizedUsername = C('unrecognized-username', 'Unrecognized username') IssueError = C('issue-error', 'Failed creating issue') Processed = C('processed', 'Processed') Sanitized = C('sanitized', 'Sanitized')
class SectionType(DjangoChoices): Stock = C(label='股票', value='股票') Bond = C(label='债券', value='债券') Metal = C(label='基本金属', value='基本金属') Agricultural = C(label='农产品', value='农产品') EnergyChemical = C(label='能源化工', value='能源化工') BlackMaterial = C(label='黑色建材', value='黑色建材')
class SubClass2(SubClass1): Item_6 = C(6) Item_7 = C(7)
class SubClass1(NumericTestClass): Item_4 = C(4) Item_5 = C(5)
class DirectionType(DjangoChoices): LONG = C(label='多', value=b'0'[0]) SHORT = C(label='空', value=b'1'[0])
class OffsetFlag(DjangoChoices): OPEN = C(label='开') CLOSE = C(label='平') CLOSE_TODAY = C(label='平今')
class DirectionType(DjangoChoices): LONG = C(label='多') SHORT = C(label='空')
class OperatorType(DjangoChoices): TELECOM = C(label='电信') UNICOM = C(label='联通')
class AddressType(DjangoChoices): TRADE = C(label='交易') MARKET = C(label='行情')
class ContaTipo(DjangoChoices): Pi = C(value='PI', label='Pessoa'), PF = C(value='PF', label='Pessoa Fisica'), PJ = C(value='PJ', label='Pessoa Juridica')
class ExchangeType(DjangoChoices): SHFE = C(value='SHFE', label='上期所') DCE = C(value='DCE', label='大商所') CZCE = C(value='CZCE', label='郑商所') CFFEX = C(value='CFFEX', label='中金所')
class ContractType(DjangoChoices): STOCK = C(label='股票') FUTURE = C(label='期货') OPTION = C(label='期权')
class NumericTestClass(DjangoChoices): Item_0 = C(0) Item_1 = C(1) Item_2 = C(2) Item_3 = C(3)
class TipoImovel(DjangoChoices): Casa = C(value='Casa', label='Casa') Apartamento = C(value='Apartamento', label='Apartamento') Loja = C(value='Loja', label='Loja')
class StatusVenda(DjangoChoices): Vendido = C(value='Cancelado', label='Cancelado') Alugado = C(value='Alugado', label='Alugado') Aguardando = C(value='Aguardando', label='Aguardando por Locador')
class ContaStatus(DjangoChoices): Ativo = C(value='Ativo', label='Ativo') Atrasado = C(value='Atrasado', label='PagamentoAtrasado') SuspensoPgto = C(value='SuspensoPgto', label='SuspensaFaltaPGTO') Inativo = C(value='Inativo', label='Inativo') Banido = C(value='Banido', label='Banido')
class Status(DjangoChoices): PendingAccept = C('pending-accept', 'Pending accept') PendingInviterApproval = C('pending-inviter-approval', 'Pending inviter approval') Active = C('active', 'Active')
class PriorityType(DjangoChoices): LOW = C(label='低', value=0) Normal = C(label='普通', value=1) High = C(label='高', value=2)