iqoptionapi package

Submodules

iqoptionapi.api module

Module for IQ Option API.

class iqoptionapi.api.IQOptionAPI(host, username, password, proxies=None)[source]

Bases: object

Class for communication with IQ Option API.

Parameters:
  • host (str) – The hostname or ip address of a IQ Option server.
  • username (str) – The username of a IQ Option server.
  • password (str) – The password of a IQ Option server.
  • proxies (dict) – (optional) The http request proxies.
appinit

Property for get IQ Option http appinit resource.

Returns:The instance of Appinit.
auth

Property for get IQ Option http auth resource.

Returns:The instance of Auth.
billing

Property for get IQ Option http billing resource.

Returns:The instance of Billing.
buy

Property for get IQ Option websocket buyv2 request.

Returns:The instance of Buyv2.
buyback

Property for get IQ Option http buyback resource.

Returns:The instance of Buyback.
candles = <iqoptionapi.ws.objects.candles.Candles object>
changebalance

Property for get IQ Option http changebalance resource.

Returns:The instance of Changebalance.
connect()[source]

Method for connection to IQ Option API.

getcandles

Property for get IQ Option websocket candles chanel.

Returns:The instance of GetCandles.
getprofile

Property for get IQ Option http getprofile resource.

Returns:The instance of Login.
listinfodata = <iqoptionapi.ws.objects.listinfodata.ListInfoData object>
login

Property for get IQ Option http login resource.

Returns:The instance of Login.
loginv2

Property for get IQ Option http loginv2 resource.

Returns:The instance of Loginv2.
prepare_http_url(resource)[source]

Construct http url from resource url.

Parameters:resource – The instance of Resource.
Returns:The full url to IQ Option http resource.
profile = <iqoptionapi.ws.objects.profile.Profile object>
send_http_request(resource, method, data=None, params=None, headers=None)[source]

Send http request to IQ Option server.

Parameters:
  • resource – The instance of Resource.
  • method (str) – The http request method.
  • data (dict) – (optional) The http request data.
  • params (dict) – (optional) The http request params.
  • headers (dict) – (optional) The http request headers.
Returns:

The instance of Response.

send_websocket_request(name, msg)[source]

Send websocket request to IQ Option server.

Parameters:
  • name (str) – The websocket request name.
  • msg (dict) – The websocket request msg.
set_session_cookies()[source]

Method to set session cookies.

setactives

Property for get IQ Option websocket setactives chanel.

Returns:The instance of SetActives.
ssid

Property for get IQ Option websocket ssid chanel.

Returns:The instance of Ssid.
subscribe

Property for get IQ Option websocket subscribe chanel.

Returns:The instance of Subscribe.
timesync = <iqoptionapi.ws.objects.timesync.TimeSync object>
token

Property for get IQ Option http token resource.

Returns:The instance of Token.
unsubscribe

Property for get IQ Option websocket unsubscribe chanel.

Returns:The instance of Unsubscribe.
websocket

Property to get websocket.

Returns:The instance of WebSocket.

iqoptionapi.constants module

Module for IQ Option API constants.

Module contents

A python wrapper for IQ Option API.