Skip to content

Actives

Alexander Skiridomov edited this page Sep 1, 2016 · 7 revisions

To subsribe for trade actives information you can use api.setactives(actives) method. Where actives is list of active identifier. Every active has it's own internal identifier the associated dictionary (ACTIVES) with name:identifier your can find in constants.py

ACTIVES = {"EURUSD": 1,
           "EURUSD-OTC": 76}

You can use

api.setactives([1, 76])

or

import iqoptionapi.constants as api_constants

api.setactives([api_constants.ACTIVES["EURUSD"], api_constants.ACTIVES["EURUSD-OTC"]])

About

Installation

Getting Started

Troubleshooting

Clone this wiki locally