Dobromir Popov bc2a8a2a9d more info in telegram;
better WS connection robustness
2024-10-11 00:07:01 +03:00
..
2024-10-10 23:24:13 +03:00
2024-05-18 01:13:54 +03:00
2024-05-18 01:13:54 +03:00
2024-10-09 10:21:36 +03:00
2024-10-11 00:07:01 +03:00
2024-10-04 03:32:26 +03:00
2024-10-03 01:33:26 +03:00
2024-10-08 17:40:33 +03:00
2024-10-07 23:25:00 +03:00

Conda activate trade/crypto/py To run this Python Solana agent:

Install the required libraries:

pip install flask solana dexscreener python-telegram-bot asyncio base58 aiohttp pip install flask dexscreener python-telegram-bot aiohttp requests dotenv websockets solders solana

Replace REPLACE_WITH_WALLET_ADDRESS with the wallet address you want to follow. Replace REPLACE_WITH_YOUR_WALLET_ADDRESS with your own wallet address. Save the code in a file, e.g., solana_agent.py.

Run the Flask application:

python app.py

generate requirements:#!/bin/bash

Install necessary tools

pip install pipreqs pip-tools

Generate initial requirements

pipreqs . --force

Rename requirements.txt to requirements.in

mv requirements.txt requirements.in

Generate updated requirements.txt

pip-compile requirements.in

Optionally, update your environment

pip-sync requirements.txt

echo "Requirements have been updated in requirements.txt"

max ammount on FATGF gives error: ERROR:error_logger:Swap Follow Error: Program log: Instruction: Transfer", "Program log: Error: insufficient funds", "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 4300 of 1363889 compute units"