This project is a backend service for a crypto trading bot, developed to interact with the Polygon blockchain. It is implemented using Python with the Flask framework and leverages the Web3.py library for blockchain interactions. The bot is capable of executing various actions such as buying, selling, and swapping tokens, as well as performing automated rebalances based on insights. It also provides endpoints to retrieve token prices and transaction logs.
This bot is designed for educational and study purposes only. It is not intended for use in actual trading activities.
This software is licensed under the MIT License. See the LICENSE file for more information.
This software was written by Gustavo Polli.
Contributions are welcome! Please open a pull request or issue on the GitHub repository.
Sends the given amount of crypto to the specified address.
recipientAddress
: string - The recipient's wallet addressamountInPol
: number - The amount of crypto to send in POL
transactionHash
: string - The transaction hash
Buys the given amount of crypto in USD.
amountInUsd
: number - The amount of crypto to buy in USD
transactionHash
: string - The transaction hash
Sells the given amount of crypto in POL.
amountInPol
: number - The amount of crypto to sell in POL
transactionHash
: string - The transaction hash
Swaps the given amount of tokens.
tokenIn
: string - The token to swap intokenOut
: string - The token to swap outamountIn
: number - The amount of tokens to swap in
transactionHash
: string - The transaction hash
Performs a fundamentalist analysis on the given token.
tokenAddress
: string - The address of the token to analyzedays
: number - The number of days to analyzeinterval
: string - The interval to analyze (e.g. "1 hour", "1 day", "1 week")
trend
: string - The trend of the token (e.g. "up", "down", "neutral")score
: number - A score indicating the strength of the trend (0-100)