{"id":21467072,"url":"https://github.com/cpapazaf/tornado-oanda","last_synced_at":"2025-07-22T05:31:35.154Z","repository":{"id":143121330,"uuid":"55089495","full_name":"cpapazaf/tornado-oanda","owner":"cpapazaf","description":"Tornado (Python) extension for Oanda's (forex trading) streaming service ","archived":false,"fork":false,"pushed_at":"2016-03-30T20:23:50.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-15T09:03:35.706Z","etag":null,"topics":["forex-trading","oanda-api","python","python-tornado"],"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/cpapazaf.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-03-30T19:00:47.000Z","updated_at":"2018-04-08T08:16:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"1bb66a03-0d68-4b9f-94ce-c350e3de3d7d","html_url":"https://github.com/cpapazaf/tornado-oanda","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cpapazaf/tornado-oanda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpapazaf%2Ftornado-oanda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpapazaf%2Ftornado-oanda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpapazaf%2Ftornado-oanda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpapazaf%2Ftornado-oanda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cpapazaf","download_url":"https://codeload.github.com/cpapazaf/tornado-oanda/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpapazaf%2Ftornado-oanda/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266433090,"owners_count":23927697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["forex-trading","oanda-api","python","python-tornado"],"created_at":"2024-11-23T08:16:31.049Z","updated_at":"2025-07-22T05:31:35.140Z","avatar_url":"https://github.com/cpapazaf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tornado-oanda\n[![Build Status](https://travis-ci.org/cpapazaf/tornado-oanda.svg?branch=master)](https://travis-ci.org/cpapazaf/tornado-oanda)\n\n## Overview\nOanda forex trading stream service for tornado web server\n\n\n##Example Usage\n\n    import tornado.ioloop\n    from tornado_oanda import *\n    from tornado.gen import coroutine\n    \n    import logging\n    logger = logging.getLogger('tornado_oanda')\n    logger.setLevel(logging.DEBUG)\n    \n    \n    @coroutine\n    def eur_usd_prices(instrument, bid, ask, time):\n        # TODO: do things here\n    \n    \n    @coroutine\n    def eur_usd_events(transaction):\n        # TODO: do things here\n    \n\n    if __name__ == '__main__':\n    \n        token = \"\"\n        account_id = \"\"\n    \n        my_rates = OandaRatesServer([('^EUR_USD$', eur_usd_prices)], \n                                    account_id=account_id, \n                                    access_token=token, \n                                    environment=\"practice\")\n        my_rates.listen(instruments=\"EUR_USD,EUR_SEK\")\n    \n        my_events = OandaEventsServer([('^EUR_USD$', eur_usd_events)], \n                                      account_id=account_id, \n                                      access_token=token, \n                                      environment=\"practice\")\n        my_events.listen()\n    \n        tornado.ioloop.IOLoop.current().start()\n\n## Contribution\n\n### Creating Issues\n\nIf you find a problem please create an \n[issue in the ticket system](https://github.com/cpapazaf/tornado-oanda/issues)\nand describe what is going wrong or what you expect to happen.\nIf you have a full working example or a log file this is also helpful.\nYou should of course describe only a single issue in a single ticket and not \nmixing up several different things into a single issue.\n\n### Creating a Pull Request\n\nBefore you create a pull request it is necessary to create an issue in\nthe [ticket system before](https://github.com/cpapazaf/tornado-oanda/issues)\nand describe what the problem is or what kind of feature you would like\nto add. Afterwards you can create an appropriate pull request.\n\nIt is required if you want to get a Pull request to be integrated into to squash your\ncommits into a single commit which references the issue in the commit message.\n\nA pull request has to fulfill only a single ticket and should never create/add/fix\nseveral issues in one, cause otherwise the history is hard to read and to understand \nand makes the maintenance of the issues and pull request hard.\n\n## License\n\nDistributed under the Apache License 2.0 license: http://opensource.org/licenses/Apache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpapazaf%2Ftornado-oanda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcpapazaf%2Ftornado-oanda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpapazaf%2Ftornado-oanda/lists"}