Complete reference for all Binary Options Tools V2 methods
buyMethodPlace a CALL trade (bet price will go up)
| Name | Type | Required | Description |
|---|---|---|---|
asset | string | Yes | Trading pair (e.g., "EURUSD_otc") |
amount | float | Yes | Trade amount in USD |
time | int | Yes | Expiry time in seconds (60, 120, etc.) |
action | string | No | "call" or "put" (default: "call") |
tuple[int, dict]Returns (trade_id, trade_data)
api.buy(asset="EURUSD_otc", amount=1.0, time=60)sellMethodPlace a PUT trade (bet price will go down)
| Name | Type | Required | Description |
|---|---|---|---|
asset | string | Yes | Trading pair (e.g., "EURUSD_otc") |
amount | float | Yes | Trade amount in USD |
time | int | Yes | Expiry time in seconds |
tuple[int, dict]Returns (trade_id, trade_data)
api.sell(asset="EURUSD_otc", amount=1.0, time=60)check_winMethodCheck if a trade won or lost
| Name | Type | Required | Description |
|---|---|---|---|
trade_id | int | Yes | ID of the trade to check |
boolTrue if won, False if lost
result = api.check_win(trade_id)