This repository has been archived by the owner on Mar 14, 2024. It is now read-only.
Unique Trade ID #595
Unanswered
TradingData684
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
is there a possibility to assign a unique ID to a trade and access it then afterwards?
The background behind this is:
I have two strategies. One sells some puts, the other one sells BPS. Both are based on different entry signals, but it can occur that both trades happen at the same time.
My skripts are designed in a way that they work with a central status manager. The status manager keeps track of what the script should do. E.g. open a trade is a status, close a trade is a status, monitor a trade is another status, etc. Then for security reasons I designed my script in a way that it can be shut down and finds back to the right status at any time. The problem now is, if I have two trades open (nacked put and BPS) and there is the same option (same strike, duration, etc.) in both trades my status manager has problems finding the right option to monitor. Therefore I would like to assign a unique ID to each trade, which I can save somewhere locally, so I get around the described problem.
Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions