Skip to content

71n0x/BinanceP2P

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ConsoleApp1

BinanceP2P

A small C#/.NET prototype that checks whether exchanging currency through a Binance P2P offer paid via Revolut is more favorable than exchanging directly in the Revolut app.

The idea: the USDT/PLN (or other pair) rate on Binance P2P for listings that accept Revolut as a payment method can sometimes be better (or worse) than the standard in-app Revolut exchange rate. The project aims to fetch both rates automatically and compare them.

Project structure

  • ConsoleApp1/Program.cs — application entry point. Currently launches a browser (PuppeteerSharp + the Stealth plugin from PuppeteerExtraSharp) in non-headless mode, with a separate user profile (userData).
  • ConsoleApp1/Api.cs — HTTP calls:
    • GetRevolutExchangeRate(from, to) — fetches the exchange rate from Revolut's public API (revolut.com/api/exchange/quote).
    • GetBinanceExchangeList(currency, asset, tradeType) — fetches a list of P2P offers from Binance (p2p.binance.com/.../c2c/adv/search) for the given currency, asset, and trade type (buy/sell), filtered by the REVOLUT payment method.
  • ConsoleApp1/RevolutApiResponse.cs — DTO models for deserializing Revolut's API response.
  • ConsoleApp1/BinanceApiResponse.cs — DTO models for deserializing Binance P2P's API response.

Requirements

  • .NET 6 SDK
  • NuGet packages: PuppeteerSharp, PuppeteerExtraSharp, Newtonsoft.Json

Running

dotnet restore
dotnet run --project ConsoleApp1

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages