Python Library
Last updated
Was this helpful?
Last updated
Was this helpful?
Follow these Tutorial video to add and use the algomojo extension:
Video Tutorial
Follow these steps to set up and send a trading signal using the algomojo-webhook-signal library:
Step 1: Check Python Installation
Open the Command Prompt (CMD).
Type the following command and press Enter:
If Python is installed, you will see the version number.
Step 2: Install Python (If Not Installed)
Run the installer and enable the "Add Python to PATH" option during installation.
Once installed, verify by running:
Step 3: Install the algomojo-webhook-signal
Library
Open Command Prompt (CMD).
Run the following command to install the required library:
Step 4: Create a Python Script
Open a text editor (e.g., Notepad, VS Code, or PyCharm).
Copy and paste the following code:
Replace "YOUR_WEBHOOK_URL"
with your actual strategy webhook URL from Algomojo.
Set the action as "BUY"
or "SELL"
as required.
Step 5: Save the Script
Click File > Save As.
Name the file send_signal.py and save it in a preferred directory.
Step 6: Run the Script
Open Command Prompt (CMD) or Terminal.
Navigate to the directory where the file is saved using the cd
command:
Execute the script by running:
Step 7: Verify the Signal Response
If the execution is successful, you will see a response with a signal ID, confirming that the signal has been sent.
If Python is not installed, download it from .