Forem

vigo walker
vigo walker

Posted on

3

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!

Retry later

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay