gbox4 / forx Goto Github PK
View Code? Open in Web Editor NEW💰a command line tool for checking exchange rates between currencies, both crypto and fiat.
License: GNU General Public License v3.0
💰a command line tool for checking exchange rates between currencies, both crypto and fiat.
License: GNU General Public License v3.0
❯ forx -q 10 usd sol
Traceback (most recent call last):
File "/usr/bin/forx", line 33, in <module>
sys.exit(load_entry_point('forx==1.0.1', 'console_scripts', 'forx')())
File "/usr/lib/python3.10/site-packages/forx/convert.py", line 117, in main
if currency_symbols[to.upper()]:
KeyError: 'SOL'
I tried to use an environmental proxy to connect via the Tor network, but it seems that python-requests
doesn't bypass cloudflare since I got an error. I tried with the tor browser and it works.
I think that this should be solvable by modifing the http headers.
Please create releases for your packaging at the AUR Repo.
https://aur.archlinux.org/packages/forx
Most currencies uses two decimal places, but some of them use more or less. For example: BHD
uses three.
The decimal places needed for every fiat currency are available in the currencies data provided by #8. For crypto currencies I think that we shouldn't round the price, we should display the price as it is. It there any other idea?
Attempting to convert coins such as XMR, BNB, SAND, NEAR, KLAY, etc return "Invalid currency ." error, I have confirmed these are the names used for these coins on the Coinbase website.
Steps To Reproduce:
It's possible this isn't an issue with your application and is instead an issue with the coinbase API. Further testing indicates that lower ranked coins past the 2nd page seem to all fail.
As per this issue, some popular cryptocurrencies (XMR, BNB, SAND, NEAR, KLAY, etc.) are not supported by the Coinbase API.
The only fix for this I see is adding an option to use an alternate API to pull data for these additional cryptocurrencies. Maybe alphavantage?
Currently, forx does't support amounts that aren't whole integers. For instance, forx btc usd -q .12
returns forx: error: argument -q: invalid int value: '.12'
. Changing the type from int
to float
on line 72 in convert.py seems to resolve the issue, but I'm unsure of repercussions. I'm more than happy to submit a PR for this as well.
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.