Comments (4)
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
from gocryptotrader.
More information
It's failing here:
// LoadFromDatabase returns Item from database seeded data
func LoadFromDatabase(exchange string, pair currency.Pair, a asset.Item, interval Interval, start, end time.Time) (*Item, error) {
retCandle, err := candle.Series(exchange,
pair.Base.String(), pair.Quote.String(),
int64(interval.Duration().Seconds()), a.String(), start, end)
if err != nil {
return nil, err
}
err is not nil, so it returns nil, then tries to call here but candles
is nil, which causes the panic
err = jobs[i].rangeHolder.SetHasDataFromCandles(candles.Candles)
Not sure what the expected behavior is here. Should it return an empty struct instead? I will give that a shot.
from gocryptotrader.
In database/repository/candle/candle.go
in the function Series
there's this:
if len(out.Candles) < 1 {
return out, fmt.Errorf("%w: %s %s %s %v %s", ErrNoCandleDataFound, exchangeName, base, quote, interval, asset)
}
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.
from gocryptotrader.
That fixes this issue actually. It's failing for a different reason:
[ERROR] | DATAHISTORY | 16/04/2024 09:02:37 | GateIO unsuccessful HTTP status code: 400 raw response: {"label":"INVALID_PARAM_VALUE","message":"Candlestick too long ago. Maximum 10000 points ago are allowed"}
from gocryptotrader.
Related Issues (20)
- Excuse me, are there some examples that can teach me how to use gocryptotrader to write a strategy in golang? HOT 1
- The startTime and endTime must be millisecond on Binance query deposit list. HOT 1
- could not find a copy of typescript to link HOT 1
- Binance websocket example
- Bug in Syncmanger does not allow for tickersync only. HOT 1
- any plan to support mexc? HOT 2
- Plase Help Me ... HOT 1
- Dispatcher tries to return used channels that are `<-chan interface{}` as `chan interface` and fails
- Buy/Sell/Ask/Bid actions do not have an expected outcome
- Bitstamp: depreciated balances *_usd _ fee
- Bitfinex: WS cancel stuck waiting for confirmation HOT 1
- Bitfinex: Switch WS type assertions
- pls add support commex.com HOT 3
- Request for supporting Upbit
- When set kline.interval to OneMonth, AddPaddings error
- database reconnection
- Error: ITBIT: pair config format is nil HOT 3
- Change leverage for Binance margin asset
- Bug in gateio_wrapper.go , it should be 'y' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gocryptotrader.