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
{{ message }}
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
Horizon has a weird response for /trades when the market is new. We handle this somewhere in kelp, I think in the mirror trading template, but not in the main sideStrategy logic. For that reason the balanced, and probably all other trading templates, fail when fetching trades.
Expected behavior
The current workaround is to manually trigger a trade on this new market so we don't encounter this issue. It is rarely an issue on mainnet because there are few occasions where a new asset is created relative to on testnet (owing to testnet resets).
Frequency
The frequency is: always under the above described conditions
Steps To Reproduce
see above
Possible Solution
This bug can be fixed by fixing the code at the point where we fetch trades for the market. Look at the mirror trading template to see how it is handled there (IIRC that's where it's done correctly but I could be wrong).
Describe the bug
Horizon has a weird response for /trades when the market is new. We handle this somewhere in kelp, I think in the mirror trading template, but not in the main sideStrategy logic. For that reason the balanced, and probably all other trading templates, fail when fetching trades.
Expected behavior
The current workaround is to manually trigger a trade on this new market so we don't encounter this issue. It is rarely an issue on mainnet because there are few occasions where a new asset is created relative to on testnet (owing to testnet resets).
Frequency
The frequency is: always under the above described conditions
Steps To Reproduce
see above
Possible Solution
This bug can be fixed by fixing the code at the point where we fetch trades for the market. Look at the mirror trading template to see how it is handled there (IIRC that's where it's done correctly but I could be wrong).
Your Environment
master:v1.11.0-28-gba17509a [ba17509]
circle-ci
cli version: master:v1.11.0-28-gba17509a
gui version: v1.0.0-rc2
git branch: master
git hash: ba17509
build date: 20210923T145554Z
build type: cli
env: dev
GOOS: linux
GOARCH: amd64
Context
I am unable to run strategies on new markets because of this bug.
Attachments
The text was updated successfully, but these errors were encountered: