augmxnt / perfi Goto Github PK
View Code? Open in Web Editor NEWpersonal defi portfolio analytics
License: GNU Affero General Public License v3.0
personal defi portfolio analytics
License: GNU Affero General Public License v3.0
When I run poetry run python bin/import_chain_txs.py 0x379
, I get the following error:
AttributeError: module 'OpenSSL.SSL' has no attribute 'SSLv2_METHOD'
Everything up to then was working np.
Importing...
Traceback (most recent call last):
File "/Users/nick/Documents/perfi/bin/import_from_exchange.py", line 107, in <module>
main()
File "/Users/nick/Documents/perfi/bin/import_from_exchange.py", line 97, in main
importer.do_import(
File "/Users/nick/Documents/perfi/perfi/ingest/exchange.py", line 345, in do_import
txns = self.ledgers_csv_to_chain_txns(
File "/Users/nick/Documents/perfi/perfi/ingest/exchange.py", line 207, in ledgers_csv_to_chain_txns
asset_tx_id = self.get_symbol(asset).lower()
File "/Users/nick/Documents/perfi/perfi/ingest/exchange.py", line 179, in get_symbol
raise Exception(
Exception: This asset code in Kraken represents a fiat currency that we don't know how to convert prices for yet. Don't know what to do so throwing exception. Asset: ZEUR
The GeminiImporter
uses openpyxl to convert an xlsx into csv. Unfortunately that module seems to have a problem with long numbers.
In a gemini spreadsheet with a long number like -0.0000030335 becomes "Fee (USD) Fee" = "-3.0335e-06"
The decimal_from_str method then ignores the scientific notation and you end up with results like buying hundreds of eth for fractions of a cent. In excel itself, the true number is fully present, so it doesn't seem to be an issue with the actual Excel file, just how openpyxl handles it.
Options:
decimal_from_str()
.Screenshot:
https://imgur.com/a/OSP2Wja
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.