Skip to content

This project is the simple wrapper API Server for Binance article list which aims to show it to global world

Notifications You must be signed in to change notification settings

SoftTalents/Binance_Wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binance Wrapper

A Python FastAPI application that serves as a proxy for Binance API requests.

Usage

Install the requirements and start the server:

pip install -r requirements.txt
python main.py

The server will start on http://0.0.0.0:8000 by default.

Endpoints

1. /binancedata

Fetches Binance article data and proxies the JSON directly.

  • Method: GET
  • Query Parameters:
    • type (int): Article type identifier.
    • pageNo (int): Page number.
    • pageSize (int): Number of articles per page.

Example Request:

http://localhost:8000/binancedata?type=1&pageNo=1&pageSize=50

Response:
The JSON payload returned by Binance's API.


2. /serverinfo

Returns information about the server where this API is running.

  • Method: GET

Example Request:

http://localhost:8000/serverinfo

Example Response:

{
  "ip": "203.0.113.45",
  "country": "Colombia",
  "city": "Bogotá"
}

Notes

  • The application uses a SOCKS5 proxy to route requests to Binance's API
  • Proxy configuration is stored in the .env file
  • Debug endpoints are available for testing the proxy connection

Debugging

If you encounter issues, you can use the provided debug scripts:

python debug.py         # Test the proxy connection
python debug_binance.py # Test the Binance API connection specifically

That's all! Keep your API key safe and enjoy your proxy server.

About

This project is the simple wrapper API Server for Binance article list which aims to show it to global world

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages