Skip to content

angelocarbone/pyiqoapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyiqoapi

pyiqoapi is a python wrapper for IQOption's API.

Install

Using pip:

    $ pip install git+https://github.com/angelocarbone/pyiqoapi.git

pyiqoapi depends to some packages, which will be installed automatically.

Usage

Include the pyiqoapi module and create an pyiqoapi instance with your account credentials.

import pyiqoapi

api = pyiqoapi.PyiqoAPI(username="yourusername", password="yoursecret")
api.connect()

Examples

Open position and get result

import time
import pyiqoapi

result = None
price = 1.50   
active = 1
option = 'turbo'
direction = 'call'
expiry = 60

api = pyiqoapi.PyiqoAPI(username="yourusername", password="yoursecret")
api.connect()
ticket_num = api.open_position(price, active, option, direction, expiry)

while not result:
    result = api.get_result(ticket_num)
    time.sleep(1)
    
print(result.win)

About

pyiqoapi is a python wrapper for IQOption's API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages