我有以下方法,我做错了什么吗,或者这是错误的错误? return __initContract("AMD")
@staticmethod
def __initContract(__symbol):
contract = Contract()
contract.symbol = __symbol
contract.secType = "STK"
contract.currency = "USD"
contract.exchange = "SMART"
return contract
@staticmethod
def AMD():
return __initContract("AMD")