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 [ba17509ade15afbc8c4363ab6ae0a0dd8db08567] circle-ci
cli version: master:v1.11.0-28-gba17509a gui version: v1.0.0-rc2 git branch: master git hash: ba17509ade15afbc8c4363ab6ae0a0dd8db08567 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