예제 #1
0
파일: const.py 프로젝트: tianhm/dashboard
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='货币')
예제 #2
0
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='已触发')
예제 #3
0
파일: const.py 프로젝트: tianhm/dashboard
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='已触发')
예제 #4
0
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='改单已经被拒绝')
예제 #5
0
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])
예제 #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')
예제 #7
0
파일: const.py 프로젝트: tianhm/dashboard
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='买平')
예제 #8
0
파일: models.py 프로젝트: ganapativs/fire
 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')
예제 #9
0
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='黑色建材')
예제 #10
0
class SubClass2(SubClass1):
    Item_6 = C(6)
    Item_7 = C(7)
예제 #11
0
class SubClass1(NumericTestClass):
    Item_4 = C(4)
    Item_5 = C(5)
예제 #12
0
class DirectionType(DjangoChoices):
    LONG = C(label='多', value=b'0'[0])
    SHORT = C(label='空', value=b'1'[0])
예제 #13
0
파일: const.py 프로젝트: tianhm/dashboard
class OffsetFlag(DjangoChoices):
    OPEN = C(label='开')
    CLOSE = C(label='平')
    CLOSE_TODAY = C(label='平今')
예제 #14
0
파일: const.py 프로젝트: tianhm/dashboard
class DirectionType(DjangoChoices):
    LONG = C(label='多')
    SHORT = C(label='空')
예제 #15
0
파일: const.py 프로젝트: tianhm/dashboard
class OperatorType(DjangoChoices):
    TELECOM = C(label='电信')
    UNICOM = C(label='联通')
예제 #16
0
파일: const.py 프로젝트: tianhm/dashboard
class AddressType(DjangoChoices):
    TRADE = C(label='交易')
    MARKET = C(label='行情')
예제 #17
0
class ContaTipo(DjangoChoices):
    Pi = C(value='PI', label='Pessoa'),
    PF = C(value='PF', label='Pessoa Fisica'),
    PJ = C(value='PJ', label='Pessoa Juridica')
예제 #18
0
파일: const.py 프로젝트: tianhm/dashboard
class ExchangeType(DjangoChoices):
    SHFE = C(value='SHFE', label='上期所')
    DCE = C(value='DCE', label='大商所')
    CZCE = C(value='CZCE', label='郑商所')
    CFFEX = C(value='CFFEX', label='中金所')
예제 #19
0
파일: const.py 프로젝트: tianhm/dashboard
class ContractType(DjangoChoices):
    STOCK = C(label='股票')
    FUTURE = C(label='期货')
    OPTION = C(label='期权')
예제 #20
0
class NumericTestClass(DjangoChoices):
    Item_0 = C(0)
    Item_1 = C(1)
    Item_2 = C(2)
    Item_3 = C(3)
예제 #21
0
class TipoImovel(DjangoChoices):
    Casa = C(value='Casa', label='Casa')
    Apartamento = C(value='Apartamento', label='Apartamento')
    Loja = C(value='Loja', label='Loja')
예제 #22
0
class StatusVenda(DjangoChoices):
    Vendido = C(value='Cancelado', label='Cancelado')
    Alugado = C(value='Alugado', label='Alugado')
    Aguardando = C(value='Aguardando', label='Aguardando por Locador')
예제 #23
0
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')
예제 #24
0
파일: models.py 프로젝트: ganapativs/fire
 class Status(DjangoChoices):
     PendingAccept = C('pending-accept', 'Pending accept')
     PendingInviterApproval = C('pending-inviter-approval',
                                'Pending inviter approval')
     Active = C('active', 'Active')
예제 #25
0
파일: const.py 프로젝트: tianhm/dashboard
class PriorityType(DjangoChoices):
    LOW = C(label='低', value=0)
    Normal = C(label='普通', value=1)
    High = C(label='高', value=2)