-
Notifications
You must be signed in to change notification settings - Fork 807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in datahistorymanager #1519
Comments
Thank you for providing the CLI command you are using and the (unfortunate) panic response. It'll make looking into things much easier. I'll do an investigation soon, post what I've found and from there, look into developing a solution |
More information It's failing here:
err is not nil, so it returns nil, then tries to call here but
Not sure what the expected behavior is here. Should it return an empty struct instead? I will give that a shot. |
In
Since there's no data in the DB yet, it's returning an error which is causing the issue downstream. I've commented this out but it seems to be silently failing now because it hasn't ingested any data. |
That fixes this issue actually. It's failing for a different reason:
|
New Issue
Context
New installation. Installed database. Ran migrations and seeded exchanges.
When I create a datahistory job it fails because this line is returning nil.
candles, err = m.candleLoader(jobs[i].Exchange, jobs[i].Pair, jobs[i].Asset, jobs[i].Interval, jobs[i].StartDate, jobs[i].EndDate)
./gctcli datahistory addjob savecandles --nickname=gateio-spot-btc-usdt-1m-candles --exchange=gateio --asset=spot --pair=BTC-USDT --interval=60 --start_date="2022-06-02 12:00:00" --end_date="2022-06-04 12:00:00" --request_size_limit=10 --max_retry_attempts=3 --batch_size=3
Operating System:
MacOS 14.3
GoCryptoTrader version (
gocryptotrader -version
):GoCryptoTrader v0.1 arm64 go1.22.2 pre-release.
Expected Behavior
I expect it to download fresh data without any preexisting candles in the database.
It presume it should be able to download candles without preexisting data. There is no nil handling so the app fails.
Failure Log
The text was updated successfully, but these errors were encountered: