You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually the usePositionStream got a refresh function that will refresh the fetch "/v1/positions".
It isn't refreshing the useOrderStream included in the usePositionStream hook.
This will lead to an issue after a long inactivity on the app, algo orders won't be retrigger so it will show current position but algo orders won't be return updated if the user add a new TP SL.
FIX:
Adding a custom function who will execute refresh function from useOrderStream & refresh function from "/v1/positions".
The text was updated successfully, but these errors were encountered:
Veenoway
added a commit
to Veenoway/orderly-js-sdk
that referenced
this issue
Sep 23, 2024
Veenoway
changed the title
usePositionStream not refreshing algo orders
usePositionStream not refreshing algo orders with current refresh function
Sep 29, 2024
ISSUE:
Actually the usePositionStream got a refresh function that will refresh the fetch "/v1/positions".
It isn't refreshing the useOrderStream included in the usePositionStream hook.
This will lead to an issue after a long inactivity on the app, algo orders won't be retrigger so it will show current position but algo orders won't be return updated if the user add a new TP SL.
FIX:
Adding a custom function who will execute refresh function from useOrderStream & refresh function from "/v1/positions".
The text was updated successfully, but these errors were encountered: