Hello guys!
In this article we will write about what is BinaryOptionsTools
This is the link
also if you need help, please check this
Basic usage
To start, we need to download it from github:
git clone https://github.com/theshadow76/BinaryOptionsTools.git
cd BinaryOptionsTools
pip install -r requirements.txt
Then create a file called main.py
, and add the following content:
from BinaryOptionsTools import pocketoption
pocketoption("YOUR_SSID_HERE", True)
print(pocketoption.GetBalance())
Please check the discord to learn how to get the SSID, or you can login with password and email here
Get balance
To get balance you need to add this:
print(pocketoption.GetBalance())
To make orders
there are two options:
- Call:
def Call(self, amount: int = 1, active: str = "EURUSD_otc", expiration: int = 60, add_check_win: bool = False):
- Put:
def Put(self, amount: int = 1, active: str = "EURUSD_otc", expiration: int = 60, add_check_win: bool = False):
get candles
this is the function:
GetCandles(self, active, period, start_time=None, count=6000, count_request=1):
where:
- Active: is the active, example: EURUSD_otc
- Period: is the timeframe, example: 60, this will fetch 60s candles
- start_time: optional
- count: amount of candles to be fetched
Please visit my profile for future posts about this awesome project!
Top comments (0)