Download Python and the interpreter, then can I just download those files?
Miles Hayzlett lznZ
--
#事件合约 Before trading, please be aware of the risks involved; there is no remedy for regret!!! Don't go all in, don't go all in!!!
I found this code shared by the user with the number @事件—土豆 in the community. (Image 1)
Now, let me explain how to run it briefly.
Since it is written in Python, ensure that you have the appropriate Python environment set up.
I am using Pycharm.
After downloading, it looks like this (Image 2), and there are many versions inside, so use what you need.
I tested the ten-minute prediction and created a new text document named 5.py.
Step 1: We need to install the environment dependencies. In the terminal of Pycharm, use the command line to cd to the relevant directory, then use: python -m pip install -r requirements.txt to install the environment dependencies. If you do not see the relevant txt file, you can refer to (Image 3) to create one yourself.
After successful installation, we need to do one more step, which is to add the proxy call in the new text document 5.py.
Add the content from Image 4 at the beginning, modify the port number as needed, and it is recommended to select Japan for the IP. I personally tested it, and if you are using an IP from the United States, the price will not change. If you do not use a proxy, you will not be able to obtain the price, as I noticed that the author is calling the platform's API.
Of course, if you have a better way to call the proxy, feel free to disregard my advice.
Finally, run this .py file.
Disclaimer: Includes third-party opinions. No financial advice. May include sponsored content.See T&Cs.