iqoptionapi package¶
Subpackages¶
- iqoptionapi.http package
- Submodules
- iqoptionapi.http.appinit module
- iqoptionapi.http.auth module
- iqoptionapi.http.billing module
- iqoptionapi.http.buyback module
- iqoptionapi.http.changebalance module
- iqoptionapi.http.getprofile module
- iqoptionapi.http.getregdata module
- iqoptionapi.http.login module
- iqoptionapi.http.loginv2 module
- iqoptionapi.http.profile module
- iqoptionapi.http.register module
- iqoptionapi.http.resource module
- iqoptionapi.http.token module
- Module contents
- iqoptionapi.ws package
- Subpackages
- iqoptionapi.ws.chanels package
- Submodules
- iqoptionapi.ws.chanels.base module
- iqoptionapi.ws.chanels.buyback module
- iqoptionapi.ws.chanels.buyv2 module
- iqoptionapi.ws.chanels.candles module
- iqoptionapi.ws.chanels.setactives module
- iqoptionapi.ws.chanels.ssid module
- iqoptionapi.ws.chanels.subscribe module
- iqoptionapi.ws.chanels.unsubscribe module
- Module contents
- iqoptionapi.ws.objects package
- iqoptionapi.ws.chanels package
- Submodules
- iqoptionapi.ws.client module
- Module contents
- Subpackages
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.
-
candles
= <iqoptionapi.ws.objects.candles.Candles object>¶
-
changebalance
¶ Property for get IQ Option http changebalance resource.
Returns: The instance of Changebalance
.
-
getcandles
¶ Property for get IQ Option websocket candles chanel.
Returns: The instance of GetCandles
.
-
listinfodata
= <iqoptionapi.ws.objects.listinfodata.ListInfoData object>¶
-
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
.- resource – The instance of
-
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.
Method to set session cookies.
-
setactives
¶ Property for get IQ Option websocket setactives chanel.
Returns: The instance of SetActives
.
-
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.