New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement forex python #225
base: main
Are you sure you want to change the base?
Conversation
6811add
to
bf60891
Compare
Sounds good, but should it be a separate plugin, so that the user can decide which to use and with what priority? |
I'm wondering about how to implement that. Maybe have two different CCXT pair converters one with the REST API, and one with the importing of CSV? |
Yes, that's what I was thinking: that should give the user the most flexibility. |
@eprbell btw, I'm going to try to cherry pick and splice the code from your PR. Hopefully, I can get it all put together here soon. Should I implement this with inheritance, or by parameter that will load a particular class to handle forex processing? I'm thinking making ccxt pair converter abstract and the forex processing has to inherit from it. OR, make the REST API default, and then have another CSV class inherit and override the defaults. |
Sounds good, no worries.
I'm leaning toward making the ccxt-based converter abstract and have the two forex processing plugins inherit from it. In theory we could do something similar to the input plugins and have csv and rest subdirectories, but that would not be backward compatible, would require changes in users config files, and would make this change more complex: let's leave it as is. If needed, we'll tackle that issue as a separate change later. |
8b754be
to
9a57efb
Compare
0b2ea73
to
8aebb3c
Compare
6286ef4
to
6414ff7
Compare
6414ff7
to
19047f5
Compare
19047f5
to
ba6864a
Compare
ba6864a
to
5b3aa5c
Compare
@eprbell This should fix most Forex Issues. It is lacking docs, but I thought I would let you get a peek at it. |
Sounds good: I'll take a look (the diff in Github is large so it may take some time for me to go through it). |
2c33b00
to
f2522be
Compare
785412c
to
c165d3f
Compare
I figured it would take a while. I tried to figure out a way to break down into simpler parts, but kind of just had to be done all at once. Sorry. |
What?
Fixes #224
Dependent on #223
This allows users to make use of CSV files for Forex pricing instead of rely on exchangerate.host
Testing
I have not tested this with real world data at all. This is curently WIP.