{"id":37071363,"url":"https://github.com/n1nj4z33/iqoptionapi","last_synced_at":"2026-01-14T08:21:05.214Z","repository":{"id":62571638,"uuid":"57861843","full_name":"n1nj4z33/iqoptionapi","owner":"n1nj4z33","description":"IQ Option API 4.x (Python 2.7)  The project is obsolete and is not supported because of problems with access to IQ Options in Russia","archived":false,"fork":false,"pushed_at":"2021-07-17T12:41:33.000Z","size":454,"stargazers_count":127,"open_issues_count":96,"forks_count":596,"subscribers_count":45,"default_branch":"master","last_synced_at":"2025-09-01T17:15:02.285Z","etag":null,"topics":["api","iqoption","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/n1nj4z33.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-02T02:27:11.000Z","updated_at":"2025-06-02T10:06:52.000Z","dependencies_parsed_at":"2022-11-03T18:25:21.092Z","dependency_job_id":null,"html_url":"https://github.com/n1nj4z33/iqoptionapi","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/n1nj4z33/iqoptionapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n1nj4z33%2Fiqoptionapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n1nj4z33%2Fiqoptionapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n1nj4z33%2Fiqoptionapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n1nj4z33%2Fiqoptionapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n1nj4z33","download_url":"https://codeload.github.com/n1nj4z33/iqoptionapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n1nj4z33%2Fiqoptionapi/sbom","scorecard":{"id":672036,"data":{"date":"2025-08-11","repo":{"name":"github.com/n1nj4z33/iqoptionapi","commit":"cf7b4c40180c381950b760d32ac17ee1b46be965"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":4,"reason":"Found 4/10 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2014-14 / GHSA-652x-xj99-gmcc","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2014-13 / GHSA-cfj3-7x9c-4p3h","Warn: Project is vulnerable to: PYSEC-2018-28 / GHSA-x84v-xcm2-53pg"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 25 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T20:26:42.009Z","repository_id":62571638,"created_at":"2025-08-21T20:26:42.010Z","updated_at":"2025-08-21T20:26:42.010Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:16:59.381Z","status":"ssl_error","status_checked_at":"2026-01-14T08:13:45.490Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","iqoption","python"],"created_at":"2026-01-14T08:21:04.702Z","updated_at":"2026-01-14T08:21:05.199Z","avatar_url":"https://github.com/n1nj4z33.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IQ Option API\n[![Build Status](https://travis-ci.org/n1nj4z33/iqoptionapi.svg?branch=master)](https://travis-ci.org/n1nj4z33/iqoptionapi)\n[![Documentation Status](https://readthedocs.org/projects/iqoptionapi/badge/?version=latest)](http://iqoptionapi.readthedocs.io/?badge=latest)\n[![PyPI version](https://badge.fury.io/py/iqoptionapi.svg)](https://badge.fury.io/py/iqoptionapi)\n\nA friendly python wrapper around the [IQ Option API](https://iqoption.com).\n\nInformation about basic usage you can find on [Wiki](https://github.com/n1nj4z33/iqoptionapi/wiki)\n\nAuto generated Sphinx documentation you can  find [here](http://iqoptionapi.readthedocs.io/).\n\n### Installation\n```\npip install --upgrade git+https://github.com/n1nj4z33/iqoptionapi.git@master\n```\nReference for the above modificatioon: [StackoverFlow](https://stackoverflow.com/questions/51039974/error-while-calling-function-in-python3-5)\n\n### A small example\n\n    from iqoptionapi.api import IQOptionAPI\n    import datetime\n    import time\n    import logging\n    logging.basicConfig(format='%(asctime)s %(message)s')\n\n    api = IQOptionAPI(\"iqoption.com\", \"email\", \"Password\")\n\n    api.connect()\n    time.sleep(0.5)\n    print 'Your current blance is: {:.2f}'.format(api.profile.balance)\n\n    #How to get candles data: 1st param is the asset or so\n    #second is the interval size of the candles (currently 60 secs)\n    #and the third one is the amount of candles we would like to have\n    api.getcandles(1, 60, 25)\n    #somehow we need that wait. Don't ask me why. Otherwise we have no data\n    time.sleep(0.25)\n    data = api.candles.candles_data\n    for candles in data:\n        st = datetime.datetime.fromtimestamp(candles[0]+60).strftime('%Y-$')\n        '''\n        candles data\n        0th entry: timestamp of candle\n        1st entry: where candles starts in the interval\n        2nd entry: where candles finishes in the interval\n        3rd entry: upper wick\n        4th entry: lower wick\n        '''\n        print st, candles\n\n    #let's do some buys :D\n    while api.timesync.server_datetime.second != 48:\n        print api.timesync.server_datetime.second\n    #The first one is the money you want to set\n    #2nd is the asset. Check constants.ASSETS for the values\n    #3rd is the which mode. Turbo is for binary. Don't ask me why\n    #4th is either call or put\n    api.buy(1, 1, \"turbo\", \"call\")\n    time.sleep(0.5)\n\n\nCheck if a trade has been won or lost:\nou can give the result by using the 'win' variable which returns either 'equal' (if the trade is ongoing or a draw), 'win' (if the trade was a win), or 'loose' (if the trade was a loss)\n\n    self.api.listinfodata.current_listinfodata.win\n\nor\n\n    self.api.listinfodata.get_listinfodata(foo)\n\nFor more information on what you can actually get, you can use this JSON data which got extracted by frxncisjoseph while testing.\n\n    \"name\":\"listInfoData\",\"msg\":[{\"amount\":1000000,\"id\":2095724656,\"refund\":0,\"currency\":\"USD\",\"currency_char\":\"$\",\"active_id\":1,\"active\":\"EURUSD\",\"value\":1.07736,\"exp_value\":1077360,\"dir\":\"call\",\"created\":1489706346,\"expired\":1489706400,\"type_name\":\"turbo\",\"type\":\"front.TU\",\"profit\":100,\"profit_amount\":1,\"win_amount\":1.74,\"loose_amount\":0,\"sum\":1,\"win\":\"equal\",\"now\":1489706346,\"user_id\":0,\"game_state\":0,\"profit_income\":174,\"profit_return\":0,\"option_type_id\":3,\"site_id\":1,\"is_demo\":false,\"user_balance_id\":0,\"client_platform_id\":9,\"re_track\":\"null\",\"params\":null}]}\n\nHere is a piece of code in order to check if the buy order went through and to check how the order is doing:\n    \n    api.buy(1, 816, \"turbo\", \"call\")    \n    time.sleep(0.5)\n\n    while api.buy_successful in [None, False]:\n    ....#Could do another buy order, or something else!\n\n    print api.listinfodata.current_listinfodata.win\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn1nj4z33%2Fiqoptionapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn1nj4z33%2Fiqoptionapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn1nj4z33%2Fiqoptionapi/lists"}