{"id":20008293,"url":"https://github.com/bethanyuo/trading-api","last_synced_at":"2025-10-16T08:07:32.505Z","repository":{"id":116556740,"uuid":"244230915","full_name":"bethanyuo/trading-api","owner":"bethanyuo","description":"Consume Trading APIs from various Crypto Exchanges","archived":false,"fork":false,"pushed_at":"2020-07-08T04:37:22.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T14:24:58.132Z","etag":null,"topics":["crypto","crypto-exchanges","cryptocurrency","exchanges","trading","trading-api"],"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/bethanyuo.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}},"created_at":"2020-03-01T22:04:39.000Z","updated_at":"2024-04-05T12:06:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"e491e41e-d9b2-4452-8016-c2bd72cbca8f","html_url":"https://github.com/bethanyuo/trading-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bethanyuo%2Ftrading-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bethanyuo%2Ftrading-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bethanyuo%2Ftrading-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bethanyuo%2Ftrading-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bethanyuo","download_url":"https://codeload.github.com/bethanyuo/trading-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241446643,"owners_count":19964202,"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","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":["crypto","crypto-exchanges","cryptocurrency","exchanges","trading","trading-api"],"created_at":"2024-11-13T07:09:15.630Z","updated_at":"2025-10-16T08:07:27.475Z","avatar_url":"https://github.com/bethanyuo.png","language":"Python","readme":"# Trading API Project\nConsume trading APIs and get prices and orders from the orderbook from various exchanges like Bitstamp, Bitfinex, Coinbase and Kraken. An API is an “application program interface”, usually provided for external access through RESTful Web Services, JSON-RPC or other communication protocols. It basically provides access to a company’s data. \n\nThis example will use public data functions which Exchanges offer without having to register using their public APIs. \n\n## Requirements\n* Ubuntu 16.04.3\n* Python3\n\n## Source Code\n[TradingAPI](https://github.com/aenhsaihan/TradingAPI)\n\n## Commands\n```bash\n$ python3 TradingAPI.py\n```\n\n## Exchange APIs\nGet info from the [Bitstamp](https://www.bitstamp.net/api/ticker/) ticker. Here we use last and with the response, it will give us the last BTC price but you can experiment with other values, for example, volume will give you Last 24 hours volume.\n\nUsing similar logic, let’s get last prices from other exchanges like [Bitfinex](https://api.bitfinex.com/v1/ticker/), [Coinbase](https://coinbase.com/api/v2/prices/BTC-USD/buy) and [Kraken](https://api.kraken.com/0/public/Ticker).\n\nGet some info from the Bitstamp order book. The difference is that in this case, the API returns a JSON dictionary with \"bids\" and \"asks\". Each is a list of open orders and each order is represented as a list holding the price and the amount. Implement code that gets price and quantity for last bid and ask orders.\n\nPrint the information in the console and update it in every 3 seconds. \n\n### Module\nMI2: Module 4: E2\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbethanyuo%2Ftrading-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbethanyuo%2Ftrading-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbethanyuo%2Ftrading-api/lists"}