-
Notifications
You must be signed in to change notification settings - Fork 42
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
Override or fallback exchanges #173
Comments
Do you need to file taxes soon? The reason I ask is that there is a lot in the pipeline that will just make these errors go away. We have already roughly hashed out how this is going to work. It's a bit complicated, but maybe I can give you a basic run down.
If you can wait for that to be completed, which should be this year, it should fix basically all the issues you are currently having. If you do need to file taxes this year. You have two options:
I did this for Kraken. Very soon, I should have a newer version that implements 1 week candle emulation up for you to look at. I just need to write a few more tests for #146 . EDIT: It looks like you would just need to absorb this script, add chunking, which is already implemented and just needs to be extracted and adapted, and add 1 week candle emulation, which you should be able to adapt from my code. It shouldn't be that tough if you have the time/willingness to do it. I, for one, would find it incredibly useful and would be grateful if you could do that. |
Thanks for the summary of what is going on! I was reading through all those PRs/Issues trying to catch up, but this helps a lot!
Yeah, I already filed my Japanese ones, but still need to finish up the crypto end of my US ones. I was using Cryptact before discovering this repo. That made it easy to complete the Japanese taxes as I'm only dealing with a small realized loss (as calculated by Cryptact), and as I'm sure @macanudo527 knows, losses on crypto don't count for much in Japanese tax law atm (unless you have a bunch of Msc. Income to offset) so I just claimed a zero on my Japanese taxes. In all reality, I can do the same on my US ones and not lose any significant deduction. I was just being stubborn and wanted to get all my records straight before moving on, but I can always delay that to next year ¯_(ツ)_/¯
Can you help me understand the conceptual difference between this and the geolocked REST API? I don't have a whole lot of experience with network programming so is this csv download script something just outside of the REST API that can be accessed by everyone? Happy to work on this though to learn.
I was also curious if anyone here knew if the data on binance.com is significantly different than binance.us? I know I can access the api from binance.us from the US, but I assume I should treat this an entirely different set of data (unless someone knows better). As for what I plan to do, I'd likely just look up the prices and put them in my manual csv imports as I only have a handful of them, and was just overly relying on the Edit: Feel free to close this issue if appropriate, and your other PRs will address this issue, just wanted to keep it open long enough for you to respond to my questions above, but we can put those in another issue specific to each if you'd like. |
For whatever reason, Binance.com has made the csv files public and free for download, but not the API. I would guess that this is due to it just not being all that server intensive to generate them every day and post them for such a significant exchange. It's some kind of goodwill gesture I suppose. A REST API would use up more resources since it needs to respond to incoming JSON, and if they aren't currently serving the States, they might as well shut it off. You can manually download the csv files yourself. They just made a script available for you to programmatically do that.
I would guess that the Binance.us data is for trades and pricing on the Binance.us servers only. I would guess that the pricing would be similar because of liquidity providers and such, but it could differ during severe market volatility. |
Thanks again @macanudo527 that is a very helpful reply! |
I'm currently in the US and geolocked from using the binance API. I have some BNB trades on binance when this was still ok (before the binance.us split). Currently, it appears the ccxt has an alt market pair of BNBUSDT defined here which is causing it to fail to retrieve the market data.
If I were to just overwrite that line and use another market, I would be removing the market with the highest volume by far, so not likely a great choice for all users. Two possible ideas I'm thinking about so far (please tell me if they are flawed)
_ALT_MARKET_EXCHANGES_DICT
and_ALT_MARKET_BY_BASE_DICT
to something list-like rather than a dict, such that I can have multiple entries for a single asset type. This would entail some sort of priority, such that binance would remain top priority, but only fallback to the alternative if this 451 http error (geolock) occurs.Dict
s such that each user can decide their own alt exchanges. Is this already possible and I'm just not understanding it?The text was updated successfully, but these errors were encountered: