-
I will use your latest example for my question:
The ACTUAL shares that pybroker was able to buy will be visible in result.orders & result.positions. BUT I might have additional logic in there (Order size limits, a no trade zone if actual and target weights are too similar etc.)
I am currently trying to implement my favorites authors trading system Any thoughts or even solutions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @SW4T400, PyBroker does not have an option for outputting session data. I think the approach in 1) is the best way to achieve this. I would recommend doing this by appending to a list of tuples, and then creating the DataFrame afterwards:
|
Beta Was this translation helpful? Give feedback.
Hi @SW4T400,
PyBroker does not have an option for outputting session data. I think the approach in 1) is the best way to achieve this. I would recommend doing this by appending to a list of tuples, and then creating the DataFrame afterwards:
df = pd.DataFrame(pybroker.param('data'), columns=columns)