Fixed bugs in BybitBrokerage.GetOpenOrders() method, so that it uses trigger price for Stop Market Orders and assigns a negative quantity to sell orders
Related Issue
Closes #14
Motivation and Context
Requires Documentation Change
With this change LEAN will fetch open orders from Bybit and create their respective LEAN orders successfully
How Has This Been Tested?
There were submitted different types of orders in testnet.bybit and then they were fetched in LEAN to assert LEAN could create the respective orders for each of them. Finally, the parameters of those created orders were asserted to confirm the bug was indeed fixed.
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] Refactor (non-breaking change which improves implementation)
[ ] Performance (non-breaking change which improves performance. Please add associated performance test and results)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Description
BybitBrokerage.GetOpenOrders()
method, so that it uses trigger price for Stop Market Orders and assigns a negative quantity to sell ordersRelated Issue
Closes #14
Motivation and Context
Requires Documentation Change
With this change LEAN will fetch open orders from Bybit and create their respective LEAN orders successfully
How Has This Been Tested?
There were submitted different types of orders in testnet.bybit and then they were fetched in LEAN to assert LEAN could create the respective orders for each of them. Finally, the parameters of those created orders were asserted to confirm the bug was indeed fixed.
Types of changes
Checklist:
bug-<issue#>-<description>
orfeature-<issue#>-<description>