首頁  >  文章  >  後端開發  >  什麼是 BinaryOptionsTools ?

什麼是 BinaryOptionsTools ?

Barbara Streisand
Barbara Streisand原創
2024-10-23 00:03:30456瀏覽

What is BinaryOptionsTools ?

大家好!
在本文中,我們將介紹什麼是 BinaryOptionsTools

這是連結
如果您需要協助,請檢查此

基本用法

首先,我們需要從 github 下載它:

git clone https://github.com/theshadow76/BinaryOptionsTools.git
cd BinaryOptionsTools
pip install -r requirements.txt

然後建立一個名為main.py的文件,並加入以下內容:

from BinaryOptionsTools import pocketoption

pocketoption("YOUR_SSID_HERE", True)

print(pocketoption.GetBalance())

請查看discord以了解如何取得SSID,或者您可以在此處使用密碼和電子郵件登入

獲得平衡

要獲得平衡,您需要添加以下內容:

print(pocketoption.GetBalance())

下訂單

有兩個選項:

  • Call:def Call(自身,金額:int = 1,活躍:str =“EURUSD_otc”,到期: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):

拿蠟燭

這是函數:

GetCandles(self, active, period, start_time=None, count=6000, count_request=1):

地點:

  • Active:是活躍的,例如:EURUSD_otc
  • 期間:是時間範圍,例如:60,這將取得 60 根蠟燭
  • 開始時間:可選
  • 計數:要取得的蠟燭數量

請訪問我的個人資料,以獲取有關這個出色項目的未來帖子!

以上是什麼是 BinaryOptionsTools ?的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn