DEV Community

Cover image for Binancio - Binance P2P Bot
Sanchez Marcos
Sanchez Marcos

Posted on • Updated on

Binancio - Binance P2P Bot

Making of a bot that calculates median price of any crypto-asset in fiat currency on Binance's p2p exchange, without leaving your console.
Binancio Terminal

◼️ 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

Alt Text
Binance P2P Market

◼️ 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
Enter fullscreen mode Exit fullscreen mode
Using custom options
npx binancio --ticker ETH --fiat USD --operation BUY
Enter fullscreen mode Exit fullscreen mode
Overall options
npx binancio --help
Enter fullscreen mode Exit fullscreen mode
  -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
Enter fullscreen mode Exit fullscreen mode

☁️ Installation

# Using npm
npm install -g binancio

# Using yarn
yarn global add binancio
Enter fullscreen mode Exit fullscreen mode

⚫️ Dependencies

  • chalk - Terminal string styling done right
  • inquirer - Common interactive command line user interfaces

⚫️ Repository

Alt Text

Any feedback on the article and code is welcome.
🖤 Thank you very much for your time and attention!

Follow me on Twitter

In case you want to support Binancio development 🤖💛

Gumroad link:

Bitcoin, Crypto, Ethereum.

Top comments (6)

3dubbeltjes2 profile image

Can you also make it so the bot can automatically execute orders buy/sell without leaving your console?

sanchezmarcosme profile image
Sanchez Marcos

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:

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!

fluer profile image
Elyi Pierre

I'm very interested in this as well.

davie2021 profile image

Nice work sir, are u open for business? I need search app, that can pay my clients on P2P automatically from bank

puripats profile image

nice work bro.

sanchezmarcosme profile image
Sanchez Marcos

Thanks! 🙏