New Exchnage PAirs
#1
Hi all,

How do i add new pairs into Gekko.

thanks

Kris
  Reply
#2
for binance
cd util/genMarketFiles
node update-binance.js
  Reply
#3
thank you
  Reply
#4
Was wondering the same but for bitfinex, however running the above just gives the following errors for me, 

---------------------------

Windows Script Host
---------------------------
Script: \Downloads\gekko\util\genMarketFiles\update-bitfinex.js
Line: 1
Char: 1
Error: Syntax error
Code: 800A03EA
Source: Microsoft JScript compilation error

---------------------------
OK   
---------------------------


CMD output: 

\Downloads\gekko\util\genMarketFiles>node update-bitfinex.js
module.js:549
    throw err;
    ^

Error: Cannot find module 'request-promise'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Downloads\gekko\util\genMarketFiles\update-bitfinex.js:3:17)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)

I tried adding the new pairs in question manually to bitfinex-markets.json however the exchange bitfinex get's removed somehow from both the backtester/importer/live gekko as an option to select. Any help with this is appreciated.
  Reply
#5
hi
@Ankasem thanks this is great..! :-)

i had missing pairs on Kraken in february.
because i did not know about Ankasem´s method, i just added the desired ASSET into the .json file.
for example Binance:
go to:

/gekko/exchanges

find exchange.json and open in editor:
binance-markets.json

here its two entries to make
first we add the coin in the ASSET-row

then we must create a new pair under "markets" that would look like this:

Code:
{
     "pair": [
       "BNB",
       "VEN"
     ],
     "minimalOrder": {
       "amount": 0.01,
       "price": 0.0001,
       "order": 1
     }
   },

whats all these numbers are all about???
i just looked up a similar coin-value-pair price range (price against BTC or USDT)

then restart gekko and browser

first you can import some market data in order to see if it works...before go live... hehe lol
it was working.
hope this helps
  Reply
#6
The thing is neither option seems to work for me, going via the util/update method results in errors posted above. And if I manually add the pair doing exactly as I should following the same format for the rest of the bitfinex pairs, the exchange doesn't appear in the UI section when selecting exchange. However if I remove the said new pair I am trying to add then bitfinex appears once again in the UI section on exchange. P.s. I do the above and restart both browser/gekko after changes are made.
  Reply
#7
hi Kyle

this seems rather odd because my friend is a beginner but, has managed to do exactly that same task on his bitfinex account,
and claim it worked for him.

i assume if it would not have worked, he would ask me again (come over with laptop to my place)

did You have inserted both;
-Asset name
-pair

>>>>>you could place both versions here for us to look at it<<<<<
  Reply
#8
is everything else working with your Bitfinex API ???

-backtest
-paper trader
-live gekko
  Reply


Forum Jump:


Users browsing this thread: