Documentation/API Reference

API Reference

Complete reference for all Binary Options Tools V2 methods

buyMethod

Place a CALL trade (bet price will go up)

Parameters

NameTypeRequiredDescription
assetstringYesTrading pair (e.g., "EURUSD_otc")
amountfloatYesTrade amount in USD
timeintYesExpiry time in seconds (60, 120, etc.)
actionstringNo"call" or "put" (default: "call")

Returns

tuple[int, dict]

Returns (trade_id, trade_data)

Example

api.buy(asset="EURUSD_otc", amount=1.0, time=60)
sellMethod

Place a PUT trade (bet price will go down)

Parameters

NameTypeRequiredDescription
assetstringYesTrading pair (e.g., "EURUSD_otc")
amountfloatYesTrade amount in USD
timeintYesExpiry time in seconds

Returns

tuple[int, dict]

Returns (trade_id, trade_data)

Example

api.sell(asset="EURUSD_otc", amount=1.0, time=60)
check_winMethod

Check if a trade won or lost

Parameters

NameTypeRequiredDescription
trade_idintYesID of the trade to check

Returns

bool

True if won, False if lost

Example

result = api.check_win(trade_id)