Step 1 β Create Binance Futures Testnet Account First you need access to the test trading environment.
Generated Prompt
## APPLICATION OVERVIEW This project is a web application designed to facilitate automated trading on the Binance Futures Testnet through a command-line interface (CLI). Users will be able to execute market and limit orders, validate inputs, and log transactions, all while ensuring error handling and output visibility. ## CORE FEATURES 1. **User Authentication**: Users will log in using their GitHub account to access the Binance Futures Testnet. 2. **API Integration**: Securely connect to the Binance API using generated API keys for executing trades. 3. **Order Management**: Users can place market and limit orders, with clear input validations to ensure correct parameters. 4. **Logging System**: All API requests, responses, and errors will be logged for debugging and record-keeping. 5. **Command-Line Interface**: A user-friendly CLI to accept trading commands and display results in a clear format. 6. **Error Handling**: Robust error handling to manage invalid inputs, API errors, and network issues effectively. ## DESIGN SPECIFICATIONS - **Visual Style**: Minimalist - Clean, simple design with plenty of white space and a focus on typography. - **Color Mode**: Light theme with dark text on light backgrounds to enhance readability. - **Layout**: The application should have a single-page layout with a structured CLI interface that allows users to input commands directly. - **Typography**: Use a sans-serif font for clear readability, with a larger font size for headings and smaller sizes for command prompts and outputs. ## TECHNICAL REQUIREMENTS - **Framework**: React with TypeScript - **Styling**: Tailwind CSS for responsive design and utility-based styling. - **UI Components**: Use shadcn/ui for a consistent and modern UI element library. - **State Management**: React Context API or Zustand for managing application state if needed. ## IMPLEMENTATION STEPS 1. **Set Up Project**: Create a folder structure as outlined: ``` trading_bot/ βββ bot/ β βββ client.ts β βββ orders.ts β βββ validators.ts β βββ logging_config.ts β βββ cli.ts βββ logs/ βββ README.md βββ requirements.txt βββ main.tsx ``` 2. **Install Dependencies**: Initialize the project with a virtual environment and install necessary libraries: ```bash npm install python-binance requests argparse ``` 3. **Implement Logging**: Create `logging_config.ts` to manage log file creation and error logging. 4. **Build Binance Client**: In `client.ts`, implement functions to read API keys and connect to the Binance Testnet. 5. **Develop Order Logic**: In `orders.ts`, create functions for placing market and limit orders. 6. **Input Validation**: Create `validators.ts` to validate user inputs for order requests. 7. **Create CLI Interface**: In `cli.ts`, set up the command-line interface to read user arguments and validate them. 8. **Output Results**: Implement logic to print order requests and responses clearly in the terminal. 9. **Error Handling**: Use try-catch blocks in relevant areas to manage errors and provide user feedback. 10. **Testing**: Run sample orders to ensure functionality and check both terminal output and logs. 11. **Documentation**: Write `README.md` to guide users on project setup, running commands, and troubleshooting. 12. **Version Control**: Create a GitHub repository and upload the entire project, including source code, requirements, and log files. ## USER EXPERIENCE Users will interact with the application via the CLI, entering commands to place trades. The application will validate each command, execute trades through the Binance API, and provide immediate feedback in the terminal. Logs will enable users to track their actions and troubleshoot any issues effectively, ensuring a smooth trading experience.
Loved by thousands of makers from
From early prototypes to real products, they started here.







































Generate optimized prompts for your vibe coding projects
Generate prompt
Enter a brief description of the app you want to build and get an optimized prompt
Review and use your prompt
Review (and edit if necessary) the generated prompt, then copy it or open it directly in your chosen platform
Get inspired with new ideas
Get AI-generated suggestions to expand your product with features that will surprise your users
Frequently Asked Questions
Everything you need to know about creating better prompts for your Lovable projects
Still have questions?
Can't find what you're looking for? We're here to help!
