{"id":37074439,"url":"https://github.com/vinitjames/binancepy","last_synced_at":"2026-01-14T08:46:32.872Z","repository":{"id":52927355,"uuid":"334497690","full_name":"vinitjames/binancepy","owner":"vinitjames","description":"An unofficial python wrapper for binance exchange API","archived":false,"fork":false,"pushed_at":"2021-04-13T17:16:42.000Z","size":178,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-03T12:25:58.988Z","etag":null,"topics":["binance","binance-api","binance-python","binance-python-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vinitjames.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-30T19:46:20.000Z","updated_at":"2022-11-03T18:51:06.000Z","dependencies_parsed_at":"2022-08-25T03:21:31.691Z","dependency_job_id":null,"html_url":"https://github.com/vinitjames/binancepy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vinitjames/binancepy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinitjames%2Fbinancepy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinitjames%2Fbinancepy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinitjames%2Fbinancepy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinitjames%2Fbinancepy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinitjames","download_url":"https://codeload.github.com/vinitjames/binancepy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinitjames%2Fbinancepy/sbom","scorecard":{"id":922598,"data":{"date":"2025-08-11","repo":{"name":"github.com/vinitjames/binancepy","commit":"20c006fe391be27b7f948306a94b0309dd2814ea"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"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":10,"reason":"no dangerous workflow patterns detected","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":0,"reason":"Found 0/24 approved changesets -- score normalized to 0","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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-package.yml:1","Info: no jobLevel write permissions found"],"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-package.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/vinitjames/binancepy/python-package.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-package.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/vinitjames/binancepy/python-package.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:28","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:29","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:30","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:31","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 pipCommand dependencies pinned"],"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q"],"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 10 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-25T05:53:54.190Z","repository_id":52927355,"created_at":"2025-08-25T05:53:54.190Z","updated_at":"2025-08-25T05:53:54.190Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414693,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["binance","binance-api","binance-python","binance-python-api"],"created_at":"2026-01-14T08:46:32.169Z","updated_at":"2026-01-14T08:46:32.808Z","avatar_url":"https://github.com/vinitjames.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"================================\nBinancePy  \n================================\n.. image:: https://img.shields.io/github/workflow/status/vinitjames/binancepy/Python%20package?color=green%20\n    :target:  https://github.com/vinitjames/binancepy/actions\n\t\t\t  \n.. image:: https://img.shields.io/pypi/v/binancepy?color=blue\n    :target:  https://pypi.org/project/binancepy/\n\n.. image:: https://img.shields.io/github/license/vinitjames/binancepy\n    :target:  https://github.com/vinitjames/binancepy/blob/master/LICENSE\n\n|\n\nThis is an unofficial Python wrapper for the `Binance exchange REST API v3 \u003chttps://github.com/binance/binance-spot-api-docs\u003e`_.\n\n\n\nSource code\nhttps://github.com/vinitjames/binancepy\n\nDocumentation\nhttps://binancepy.readthedocs.io/en/latest/\n\nBinance API Telegram\nhttps://t.me/binance_api_english\n\nMake sure you update often and check the `Changelog \u003chttps://python-binance.readthedocs.io/en/latest/changelog.html\u003e`_ for new features and bug fixes.\n\nFeatures\n--------\n  \n- Implementation of  Market Data, Trading and Wallet endpoints\n- Market Data Endpoints accessible without binance api key\n- No need to generate timestamps yourself, the wrapper does it for you\n- Response exception handling\n- Historical Kline/Candle fetching function\n- Simple handling of authentication\n- Spot Trading\n- Margin Trading\n- Futures Trading\n- Wallet Info and Transfer functionality \n- Support other domains (.us, .jp, etc)\n\t\t\t\t\t  \nQuick Start\n-----------\n\nTo install as Python package run \n\n.. code-block:: bash\n\n\tpip install binancepy\n\nOr clone the repo with git and install with version you want\n\n.. code-block:: bash\n\t\t\t\t\n\tgit clone -b 'branch name' https://github.com/vinitjames/binancepy.git\n\tcd binancepy\n\tpip install .\n\nTo run  the sample public client which does not require api keys run the command below:-\n\n.. code-block:: bash\n\t\t\t\t\n\tpython examples/sample_public_client.py\n\nFetching Market Data\n--------------------\n\nTo fetch market data with binance market data endpoints both PublicClient and AuthenticatedClient can be used. PublicClient can be used without without an API key.\n\n.. code-block:: python\n\n    from binance.client import PublicClient\n   \n    # creating a public client with default request params\n    client = PublicClient()\n    \n    #getting server time\n    result = client.get_server_time()\n    \n    # getting exchange info\n    ex_info = client.get_exchange_info()\n\n    # getting exchange info\n    sym_info = client.get_symbol_info(symbol='ETHEUR')\n    \n    #getting price_ticker if symbol not included value for all symbols are returned\n    price_ticker = client.get_price_ticker(symbol='ETHEUR')\n\n    #getting orderbook ticker if symbol not included value for all symbols are returned\n    orderbook_ticker = client.get_orderbook_ticker(symbol='ETHEUR')\n    \n    #getting orderbook for a symbol        \n    orderbook = client.get_order_book(symbol='ETHEUR', limit = 10)\n\t\n    #getting average price, for the specified symbol\n    avg_price = client.get_avg_price('ETHEUR')\n \n    #getting 24hr price ticker, if symbol not included value for all symbols are returned\n    _24_hr_ticker = client.get_24hr_ticker('ETHEUR')\n\t\n    #getting recent trades for a symbol    \n    recent_trades = client.get_recent_trades('ETHEUR', limit=5)\n\t\t\t\t\n    #getting historical klines/candelstick for a symbol,         \n    klines = client.get_historical_klines(symbol = 'ETHUSDT',\n                                          interval = client.KLINE_INTERVAL.ONEDAY,\n                                          startTime = '2/12/2018',\n                                          endTime = '12/12/2019')\n\n\nTrading and Getting Account/Wallet Info with API keys  \n-----------------------------------------------------\nTo use trading(Spot, Margin, Future) and wallet endpoints a binance account create a binance account.  \n`Register an account with Binance \u003chttps://www.binance.com/register.html?ref=10099792\u003e`_.\n\n\n`Generate an API Key \u003chttps://www.binance.com/userCenter/createApi.html\u003e`_ and assign relevant permissions.\n\n.. code-block:: python\n\n    from binance.client import AuthenticatedClient\n   \n    client = AuthenticatedClient(api_key, api_secret)\n\n    # get market depth\n    depth = client.get_order_book(symbol='BNBBTC')\n   \n   # place a test market buy order, to place an actual order use the create_order function\n   order = client.create_test_order(\n\t\t\t\tsymbol='BNBBTC',\n\t\t\t\tside=Client.SIDE_BUY,\n\t\t\t\ttype=Client.ORDER_TYPE_MARKET,\n\t\t\t\tquantity=100)\n\n   # get all symbol prices\n   prices = client.get_all_tickers()\n\n   # withdraw 100 ETH\n   # check docs for assumptions around withdrawals\n   from binance.exceptions import BinanceAPIError, BinanceWithdrawError\n\n   try:\n     result = client.withdraw(\n\t\t\t\tasset='ETH',\n\t\t\t\taddress='\u003ceth_address\u003e',\n\t\t\t\tamount=100)\n\t except BinanceAPIException as e:\n\t\t\tprint(e)\n\t\t\t\n\t except BinanceWithdrawException as e:\n            print(e)\n\t else:\n\t\tprint(\"Success\")\n\n\t # fetch list of withdrawals\n\t withdraws = client.get_withdraw_history()\n\n\t # fetch list of ETH withdrawals\n\t eth_withdraws = client.get_withdraw_history(asset='ETH')\n\n\t # get a deposit address for BTC\n\t address = client.get_deposit_address(asset='BTC')\n\n\t # start aggregated trade websocket for BNBBTC\n\t def process_message(msg):\n\t     print(\"message type: {}\".format(msg['e']))\n\t\t print(msg)\n\t\t \n\nFor more `check out the documentation \u003chttps://binancepy.readthedocs.io/en/latest/\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinitjames%2Fbinancepy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinitjames%2Fbinancepy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinitjames%2Fbinancepy/lists"}