{"id":17081885,"url":"https://github.com/yutiansut/qifiaccount","last_synced_at":"2026-02-27T17:49:12.305Z","repository":{"id":47514923,"uuid":"213278656","full_name":"yutiansut/QIFIAccount","owner":"yutiansut","description":"QIFI协议下的Account实现","archived":false,"fork":false,"pushed_at":"2021-09-03T04:30:43.000Z","size":198,"stargazers_count":27,"open_issues_count":7,"forks_count":41,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T21:07:01.902Z","etag":null,"topics":["quantaxis"],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","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/yutiansut.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}},"created_at":"2019-10-07T02:20:25.000Z","updated_at":"2024-08-20T07:25:28.000Z","dependencies_parsed_at":"2022-09-26T19:10:54.686Z","dependency_job_id":null,"html_url":"https://github.com/yutiansut/QIFIAccount","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutiansut%2FQIFIAccount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutiansut%2FQIFIAccount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutiansut%2FQIFIAccount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutiansut%2FQIFIAccount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yutiansut","download_url":"https://codeload.github.com/yutiansut/QIFIAccount/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631677,"owners_count":21136562,"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":["quantaxis"],"created_at":"2024-10-14T12:57:31.312Z","updated_at":"2026-02-27T17:49:12.265Z","avatar_url":"https://github.com/yutiansut.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QIFIAccount\nQIFI协议下的Account实现\n\n_QIFIAccount兼容 [QIFI协议标准](https://github.com/QUANTAXIS/QIFI/blob/master/README.md)和[DIFF协议标准](https://github.com/shinnytech/diff)_\n\n```\npip install qifiaccount\n```\n\n\nQIFIAccount/ QIFI的订书机的时间序列处理模式将兼容回测\n\n--- timeseries =\u003e [QIFI, QIFI, QIFI, ... , QIFI..]\n\n具体可以参考QIFIManager中的管理代码\n\n```\nQIFIAccount 中引入了 frozen 冻结的概念, 因此在 send_order 用法的时候, 会进行 order_check\n\n--  平仓的时候的仓位影响会体现在 frozen 中\n\n--  receive_deal 的时候再结算  恢复frozen | 仓位结算\n\n```\n\n\n\n\n\n### 用法:\n\n参见 /usage 文件夹下的ipython notebook\n\n```python\n\nfrom QIFIAccount import QIFI_Account, ORDER_DIRECTION\nacc = QIFI_Account(\"x1\", \"x1\")\nacc.initial()\n\n\nprint(acc.message)\n\n\nacc.send_order\n\n\nacc.cancel_order\n\n\nacc.get_position\n\n```\n\n\nQIFI_Account的最优实践是 QIFI_Strategy, 因为QIFI_Account已经将账户层完全实现, 并且支持多市场, 所以 QIFI_Strategy可以直接进行 订阅行情/ 重写on_bar/on_tick 的策略逻辑/ 以及进行仓位/风险管理\n\n\n\nStockSim Account\n\n仅限QA模拟盘用户使用(需要申请)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyutiansut%2Fqifiaccount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyutiansut%2Fqifiaccount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyutiansut%2Fqifiaccount/lists"}