Closed jaonewguy closed 6 years ago
Another observation is that the fees are calculated and then added on top of the market_price x position_size
. Meaning that GDAX (and Kraken, based on the provided json, although not sure if fee size is too small to tell) also put fees on top of the desired Market buy. This is the same "strange" behaviour which we thought Gemini did.
Would like to refactor the create_market_x_orders, perhaps into something similar to your ext_bithumb create_market_order
. But will look into possible design patterns, or maybe even multiple inheritance for reusing code for kraken (at least).
Let me know what you think of all the changes so far anyway.
I was thinking about code sharing too when doing the gemini portion. It seems like there are still some small things that apply to each exchange. The only one I could really see was an adapter interface/abc with shared code which took the ext_exchange outputs and turned the required functions into the uniform outputs.
Opening a new PR
Sample output: