adocquin / kraken-dca

Dollar-Cost Averaging bot for cryptocurrency pairs on Kraken exchange.
GNU General Public License v3.0
44 stars 8 forks source link

How to specify buy or sell orders? #39

Open littlewine opened 9 months ago

littlewine commented 9 months ago

Hi and thanks for providing the repo! I am looking into the configuration, and in the pairs specification, I see no way to specify whether an order is a buy order or a sell order. For instance, for placing an order to buy BTC (XXBT) with EUR, I can find the XXBTZEUR pair, but not the reverse. (from here): "XXBTZEUR":{"altname":"XBTEUR","wsname":"XBT/EUR","aclass_base":"currency","base":"XXBT","aclass_quote":"currency","quote":"ZEUR","lot":"unit","cost_decimals":5,"pair_decimals":1,"lot_decimals":8,"lot_multiplier":1,"leverage_buy":[2,3,4,5],"leverage_sell":[2,3,4,5],"fees":[[0,0.26],[50000,0.24],[100000,0.22],[250000,0.2],[500000,0.18],[1000000,0.16],[2500000,0.14],[5000000,0.12],[10000000,0.1]],"fees_maker":[[0,0.16],[50000,0.14],[100000,0.12],[250000,0.1],[500000,0.08],[1000000,0.06],[2500000,0.04],[5000000,0.02],

Kraken API support informed me that there is no reverse pair and I have to specify whether it is a buy or sell order. However, through a brief look at the code and config, I do not understand how that would be possible.