I’m new to the idea of object-oriented programming in Python, and the school has given me a question to first create a class called “Mammal”, with an attribute “name” and method get_name(). Hence I came up with this: Seems alright. The next part of the question asks me to create a subclass Dog which has the name dog and the
Tag: superclass
Python Interactive Brokers ibapi
I am having trouble using and incrementing the “orderId” for each stock order using modified IB example code. I have a method that produces nextValidId within the class and prints it to stdout but I am not sure how to access the defined property (self.nextValidOrderId) that is created in my main() program body. I am able to instantiate the EWrapper