2024-11-12 00:09:09 +02:00
..
2024-11-12 00:09:09 +02:00
solana-swap-python @ aed6399bdc
wip
2024-10-25 23:43:47 +03:00
2024-10-13 01:37:10 +03:00
2024-10-13 01:37:10 +03:00
2024-11-11 22:38:05 +02:00
2024-11-12 00:09:09 +02:00
2024-11-06 11:08:59 +02:00
2024-10-04 03:32:26 +03:00
2024-10-03 01:33:26 +03:00
2024-11-06 12:54:32 +02:00
2024-10-13 01:37:10 +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

prisma on py: //#python -m prisma generate pip install -U prisma prisma db push

PROD deployment:

gunicorn -w 4 -k uvicorn.workers.UvicornWorker app:asgi_app --bind 0.0.0.0:3001 --log-level info