Skip to content

Instantly share code, notes, and snippets.

View Br4ndonP0nce's full-sized avatar
💭
#The quieter you get the more you are able to hear

Br4ndonP0nce

💭
#The quieter you get the more you are able to hear
View GitHub Profile
@Br4ndonP0nce
Br4ndonP0nce / gist:53b089d946750ac529452fab063d8ebb
Created June 11, 2024 21:15
TradingBot Binance runs asynchronously a websocket to read latest data price for the pair BTCUSDT
import os
import asyncio
import math
from binance import AsyncClient, BinanceSocketManager
from dotenv import load_dotenv
from datetime import datetime
import time
# Load environment variables from .env file
load_dotenv()