Making of a bot that calculates median price of any crypto-asset in fiat currency on Binance's p2p exchange, without leaving your console.
◼️ Challenge
Calculate the median price of any cryptocurrency in the Binance p2p market, and make it open source off course.
⚫️ Primary Objetives
- Provide the minimum, median and maximum prices
- It cannot be intrusive or distracting
- Quick and easy to use and to discard
◼️ Solution
A very simple command line interface, focused on a simple and intuitive UX, providing a quick response on assets price.
⚡ Usage
Interactive mode
npx binancio
Using custom options
npx binancio --ticker ETH --fiat USD --operation BUY
Overall options
npx binancio --help
Options
-t, --ticker <type> Crypto ticker (choices: "USDT", "BTC", "BNB", "BUSD", "ETH", "DAI")
-f, --fiat <type> Fiat currency (choices: "ARS", "EUR", "USD", "AED", "AUD", "BDT", ...)
-o, --operation <type> Operation type (choices: "BUY", "SELL")
-p, --pay-types <type> Payment method (choices: "*", "AirTM", "Bank Transfer" ...) [Depends on localization]
-h, --help display help for command
☁️ Installation
# Using npm
npm install -g binancio
# Using yarn
yarn global add binancio
⚫️ Dependencies
- chalk - Terminal string styling done right
- inquirer - Common interactive command line user interfaces
⚫️ Repository
https://github.com/sanchezmarcos/binancio
Any feedback on the article and code is welcome.
🖤 Thank you very much for your time and attention!
In case you want to support Binancio development 🤖💛
Gumroad link:
https://sanchezmarcosme.gumroad.com/l/binancio
Bitcoin, Crypto, Ethereum.
Top comments (6)
Can you also make it so the bot can automatically execute orders buy/sell without leaving your console?
Of course it can be done with little effort by following the respective security precautions in asset management, but I think Binance offers a good UX for that use case that does not require a lot of data analysis.
Binance offers a very complete API to manage and even automate your digital finances.
If you would like to read about the subject follow this link:
binance.com/en-NG/support/faq/3600...
Friendly reminder:
Remember never to share your username, password, or crypto keys with anyone, much less with any application without first studying and understanding what its code does, ever.
Thanks for your comment!
I'm very interested in this as well.
Nice work sir, are u open for business? I need search app, that can pay my clients on P2P automatically from bank
nice work bro.
Thanks! 🙏