{"id":37072378,"url":"https://github.com/hanwanhe/easyfut-python","last_synced_at":"2026-01-14T08:29:49.239Z","repository":{"id":62593097,"uuid":"548945634","full_name":"hanwanhe/easyfut-python","owner":"hanwanhe","description":"简单期货行情\u0026交易HTTP接口API，基于TqSdk。","archived":false,"fork":false,"pushed_at":"2023-02-15T12:57:47.000Z","size":37,"stargazers_count":211,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-25T09:52:59.544Z","etag":null,"topics":["api","futures","rest-api","tqsdk"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hanwanhe.png","metadata":{"files":{"readme":"README.md","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":"2022-10-10T12:38:22.000Z","updated_at":"2025-09-14T20:02:55.000Z","dependencies_parsed_at":"2022-11-04T00:14:56.689Z","dependency_job_id":null,"html_url":"https://github.com/hanwanhe/easyfut-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hanwanhe/easyfut-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanwanhe%2Feasyfut-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanwanhe%2Feasyfut-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanwanhe%2Feasyfut-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanwanhe%2Feasyfut-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hanwanhe","download_url":"https://codeload.github.com/hanwanhe/easyfut-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanwanhe%2Feasyfut-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28214010,"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":"2026-01-05T02:00:06.358Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["api","futures","rest-api","tqsdk"],"created_at":"2026-01-14T08:29:48.741Z","updated_at":"2026-01-14T08:29:49.232Z","avatar_url":"https://github.com/hanwanhe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EasyFut\n\n#### 介绍\n\n简单期货行情\u0026交易HTTP接口API，基于TqSdk。\n\n#### 安装\u0026启动教程\n\n1.pip install easyfut\n\n2.创建配置文件 easyfut -n easyfut.conf\n\n3.修改 easyfut.conf 配置文件内容\n\n4.命令行启动 easyfut -c easyfut.conf\n\n#### 使用说明（curl演示）\n\n#获取账户信息\n\ncurl http://127.0.0.1:8888/account\n\n#获取当前持仓\n\ncurl http://127.0.0.1:8888/position\n\n#获取实时行情\n\ncurl http://127.0.0.1:8888/quote/SHFE.rb2210\n\n#获取K线行情\n\ncurl http://127.0.0.1:8888/klines/SHFE.rb2210_60_20\n\n#获取Tick序列\n\ncurl http://127.0.0.1:8888/ticks/SHFE.rb2210_20   \n\n#委托下单\n\ncurl -X POST -H \"Content-type: application/json\" -d '{\"symbol\":\"SHFE.rb2210\", \"direction\":\"BUY\",\"offset\":\"OPEN\",\"volume\":1,\"limit_price\":\"UPPER_LIMIT\"}' http://127.0.0.1:8888/order\n\n#取消委托单\n\ncurl -X POST -H \"Content-type: application/json\" -d '{\"order_id\":\"f1786bea1ad045199925deea3cd6f1c7\"}' http://127.0.0.1:8888/order/cancel\n\n#获取委托单信息\n\ncurl http://127.0.0.1:8888/order/fbcce9326a3a4f8c80295b0e6e07434a\n\n#获取当日可撤委托\n\ncurl http://127.0.0.1:8888/order/alive\n\n\n#更多详见官方文档 [https://easyfut.iweiai.com/doc](https://easyfut.iweiai.com/doc) \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanwanhe%2Feasyfut-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanwanhe%2Feasyfut-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanwanhe%2Feasyfut-python/lists"}