{"id":16560758,"url":"https://github.com/adshao/binance-cli","last_synced_at":"2025-10-28T21:31:21.828Z","repository":{"id":83183403,"uuid":"199449916","full_name":"adshao/binance-cli","owner":"adshao","description":"binance cli","archived":false,"fork":false,"pushed_at":"2021-02-24T14:14:11.000Z","size":356,"stargazers_count":18,"open_issues_count":2,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-06-20T05:17:54.410Z","etag":null,"topics":["binance","bitcoin","bnb","btc","cli","ieo"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/adshao.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":"2019-07-29T12:37:23.000Z","updated_at":"2023-10-27T09:29:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"d2681c06-b432-4f8d-a1b8-58669b9fd375","html_url":"https://github.com/adshao/binance-cli","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adshao%2Fbinance-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adshao%2Fbinance-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adshao%2Fbinance-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adshao%2Fbinance-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adshao","download_url":"https://codeload.github.com/adshao/binance-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219858782,"owners_count":16556040,"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":["binance","bitcoin","bnb","btc","cli","ieo"],"created_at":"2024-10-11T20:29:55.425Z","updated_at":"2025-10-28T21:31:21.365Z","avatar_url":"https://github.com/adshao.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### binance-cli\n\nBinance CLI\n币安交易所命令行工具\n\nManipulate multiple accounts with one command!\n支持批量操作多账号！\n\n### Installation\n\n```shell\ngo install github.com/adshao/binance-cli\n```\n\n### Prepare key file\n\nsave api/secret keys into keys.json\n```json\n[\n    {\n        \"name\": \"demo\",\n        \"api_key\": \"xxxx\",\n        \"secret_key\": \"xxx\"\n    },\n    {\n    }\n]\n```\n\n### Run CLI\n\nuse ```-h``` to get help.\n\n```shell\n./binance-cli -h\n\nNAME:\n   binance-cli - Binance CLI\n\nUSAGE:\n   binance-cli [global options] command [command options] [arguments...]\n\nVERSION:\n   0.0.0\n\nCOMMANDS:\n     list-balance  list account balances\n     list-price    list latest price for a symbol or symbols\n     list-order    list open orders\n     create-order  create order\n     cancel-order  cancel open orders\n     list-symbol   list symbols info\n     help, h       Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --name value     account name\n   --keyfile value  file path of api keys\n   --debug, -d      show debug info\n   --help, -h       show help\n   --version, -v    print the version\n```\n\n#### Check Latest Price\n\n```shell\n./binance-cli list-price --symbol BNBBTC\n```\n\u003cdetails\u003e\n\u003csummary\u003eoutput\u003c/summary\u003e\n\n```shell\n{\n    \"test1\": [\n        {\n            \"symbol\": \"BNBBTC\",\n            \"price\": \"0.00283210\"\n        }\n    ]\n}\n```\n\u003c/details\u003e\n\n#### List Balances\n\n```shell\n./binance-cli list-balance\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eoutput\u003c/summary\u003e\n\n```shell\n[\n    {\n        \"test1\": [\n            {\n                \"asset\": \"BNB\",\n                \"free\": \"2027.68758027\",\n                \"locked\": \"1000.00000000\"\n            },\n            {\n                \"asset\": \"BTC\",\n                \"free\": \"0.00001550\",\n                \"locked\": \"0.00000000\"\n            }\n        ],\n        \"test2\": [\n            {\n                \"asset\": \"BNB\",\n                \"free\": \"300.00000000\",\n                \"locked\": \"0.00000000\"\n            },\n            {\n                \"asset\": \"BTC\",\n                \"free\": \"0.00000000\",\n                \"locked\": \"0.00000000\"\n            }\n        ],\n        \"test3\": [\n            {\n                \"asset\": \"BNB\",\n                \"free\": \"603.98788625\",\n                \"locked\": \"0.00000000\"\n            },\n            {\n                \"asset\": \"BTC\",\n                \"free\": \"0.00881320\",\n                \"locked\": \"0.00000000\"\n            }\n        ]\n    },\n    {\n        \"BNB\": 3931.6754665199996,\n        \"BTC\": 0.0088287\n    }\n]\n```\n\u003c/details\u003e\n\n#### Create Order\n\nCurrently only support LIMIT order.\n\n##### Create Sell Order\n\n```shell\n./binance-cli create-order --symbol BNBUSDT --side SELL --quantity 10 --price 50\n```\n\n##### Create Sell Order With Percent Quantity\n\nThis will sell 50% of your BNB to buy USDT at price 50 USDT.\n\n```shell\n./binance-cli create-order --symbol BNBUSDT --side SELL --quantity 50% --price 50\n```\n\n##### Create Buy Order\n\n```shell\n./binance-cli create-order --symbol BNBUSDT --side BUY --quantity 10 --price 20\n```\n\n##### Create Buy Order With Percent Quantity\n\nThis will sell 100% of your USDT to buy BNB at price 20 USDT.\n\n```shell\n./binance-cli create-order --symbol BNBUSDT --side BUY --quantity 100% --price 20\n```\n\n#### Cancel Order\n\nCancel all orders with BNBUSDT in all accounts.\n\n```shell\n./binance-cli cancel-order --symbol BNBUSDT\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadshao%2Fbinance-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadshao%2Fbinance-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadshao%2Fbinance-cli/lists"}