DEV Community

vigo walker
vigo walker

Posted on

What is BinaryOptionsTools ?

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
Enter fullscreen mode Exit fullscreen mode

Then create a file called main.py, and add the following content:

from BinaryOptionsTools import pocketoption

pocketoption("YOUR_SSID_HERE", True)

print(pocketoption.GetBalance())
Enter fullscreen mode Exit fullscreen mode

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())
Enter fullscreen mode Exit fullscreen mode

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):
Enter fullscreen mode Exit fullscreen mode

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)