Home  >  Article  >  Backend Development  >  What is BinaryOptionsTools ?

What is BinaryOptionsTools ?

Barbara Streisand
Barbara StreisandOriginal
2024-10-23 00:03:30455browse

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

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!

The above is the detailed content of What is BinaryOptionsTools ?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn