Exchange import not supported?
#3
Quote:Gekko does not work with any normalized functions to import data because all exchanges have very different implementations. So if you add an exchange normally users are only able to:

- watch the realtime function (gekko will poll getTrades and build candles)
- do live trading (by creating and managing orders)
Yes, I have seen this in code. Many importers use the fetcher.getTrades method of the wrapper and set a from param.

Quote:
Quote:Did anyone implemented an universal importer taking history data from coinmarketcap for examble?

Very open to this, we just have to make sure that we can get all data Gekko already stores as part of candles, they are:

- open / high / low / close (standard candle)
- vwp
- # trades
Coinmarketcap is very quick for fetching data. However, it has some limitations. The candle size for a long term history period is 15 minutes. Benefit is, you get it all at once. If the daterange is <=24h, Coimarketcap returns 5 Min. candles, but you can of course loop the day fetching.


It contains: 

- Unix style epoch date
- price in usd
- volume in usd

I did not follow the complete Gekko backtest code yet, how will Gekko behave if you set open / high / low / close to the same usd value?

Quote:
Quote:Today I added HuobiPro and OKEX support to Gekko, watching the market goes fine but during history --import implementation it seems, the API is not exposing trade history. Or at least not more than the last 2000 trades. Am I missing something?

I am not 100% sure what you mean. The API of the exchange? In that case unfortunately Gekko won't import on that exchange.


Ah, sorry, yes I mean the exchange api, huobipro for example. The REST api does not offer much history data. Ccxt works fine with unified data access, but it can of course not expose, what the underlying REST api is not offering. Or I missed s.th., at least I did not see history data in both huobipro and okex REST api. This lead me to the idea of coinmarketcap - since there a several supported exchanges in Gekko without importer functionality.

One idea is a new --fastimport switch, to prefill the db in seconds with coinmaketcap data, to get a quick backtest direction. This would bridge the gap for all exchanges where no "--import" is available. For those exchages supporting the Gekko --import switch, will it update and overwrite existing candle data later on with more accurate data or will it skip (when running --import after --fastimport)?
  Reply


Messages In This Thread
Exchange import not supported? - by mark.sch - 07-16-2018, 01:11 PM
RE: Exchange import not supported? - by askmike - 07-17-2018, 03:02 AM
RE: Exchange import not supported? - by mark.sch - 07-17-2018, 09:22 AM
RE: Exchange import not supported? - by askmike - 07-17-2018, 03:11 PM
RE: Exchange import not supported? - by mark.sch - 07-18-2018, 11:46 AM

Forum Jump:


Users browsing this thread: