示例#1
0
def usStock_hd():
    contract = Contract()
    contract.symbol = 'HD'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 7930)
    return contract
示例#2
0
def usStock_bac():
    contract = Contract()
    contract.symbol = 'BAC'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 10098)
    return contract
示例#3
0
def usStock_cat():
    contract = Contract()
    contract.symbol = 'CAT'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 5437)
    return contract
示例#4
0
def usStock_wmt():
    contract = Contract()
    contract.symbol = 'WMT'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 13824)
    return contract
示例#5
0
def usStock_aapl():
    contract = Contract()
    contract.symbol = 'AAPL'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 265598)
    return contract
示例#6
0
def usStock_twtr():
    contract = Contract()
    contract.symbol = 'TWTR'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 137780444)
    return contract
示例#7
0
def usStock_utx():
    contract = Contract()
    contract.symbol = 'UTX'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 13364)
    return contract
示例#8
0
def usStock_mrk():
    contract = Contract()
    contract.symbol = 'MRK'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 70101545)
    return contract
示例#9
0
def usStock_msft():
    contract = Contract()
    contract.symbol = 'MSFT'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 272093)
    return contract
示例#10
0
def usStock_jpm():
    contract = Contract()
    contract.symbol = 'JPM'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 1520593)
    return contract
示例#11
0
def usStock_ko():
    contract = Contract()
    contract.symbol = 'KO'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 8894)
    return contract
示例#12
0
def usStock_jnj():
    contract = Contract()
    contract.symbol = 'JNJ'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 8719)
    return contract
示例#13
0
def usStock_intc():
    contract = Contract()
    contract.symbol = 'INTC'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 270639)
    return contract
示例#14
0
def usStock_hpq():
    contract = Contract()
    contract.symbol = 'HPQ'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 209411801)
    return contract
示例#15
0
def usStock_snap():
    contract = Contract()
    contract.symbol = 'SNAP'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 268060148)
    return contract
示例#16
0
def usStock_mu():
    contract = Contract()
    contract.symbol = 'MU'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 9939)
    return contract
示例#17
0
def usStock_tsla():
    contract = Contract()
    contract.symbol = 'TSLA'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 76792991)
    return contract
示例#18
0
def usStock_nflx():
    contract = Contract()
    contract.symbol = 'NFLX'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 15124833)
    return contract
示例#19
0
def usStock_txn():
    contract = Contract()
    contract.symbol = 'TXN'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 13096)
    return contract
示例#20
0
def usStock_nke():
    contract = Contract()
    contract.symbol = 'NKE'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 10291)
    return contract
示例#21
0
def usStock_vz():
    contract = Contract()
    contract.symbol = 'VZ'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 4901)
    return contract
示例#22
0
def usStock_nvda():
    contract = Contract()
    contract.symbol = 'NVDA'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 4815747)
    return contract
示例#23
0
def usStock_xom():
    contract = Contract()
    contract.symbol = 'XOM'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 13977)
    return contract
示例#24
0
def usStock_pg():
    contract = Contract()
    contract.symbol = 'PG'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 11054)
    return contract
示例#25
0
def usStock_baba():
    contract = Contract()
    contract.symbol = 'BABA'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 166090175)
    return contract
示例#26
0
def usStock_sbux():
    contract = Contract()
    contract.symbol = 'SBUX'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 274105)
    return contract
示例#27
0
def usStock_bb():
    contract = Contract()
    contract.symbol = 'BB'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 131217639)
    return contract
示例#28
0
def usStock_slb():
    contract = Contract()
    contract.symbol = 'SLB'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 12200)
    return contract
示例#29
0
def usStock_cbi():
    contract = Contract()
    contract.symbol = 'CBI'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 2730882)
    return contract
示例#30
0
def usStock_gs():
    contract = Contract()
    contract.symbol = 'GS'
    contract.secType = "STK"
    contract.exchange = "SMART"
    contract.currency = "USD"
    setattr(contract, 'conId', 4627828)
    return contract