quantaxis-rs

Crates.ioquantaxis-rs
lib.rsquantaxis-rs
version0.3.4
sourcesrc
created_at2021-01-01 08:34:49.710282
updated_at2021-02-24 01:08:08.456572
descriptionquantaxis in rust
homepagehttps://github.com/yutiansut
repositoryhttps://github.com/yutiansut/quantaxis-rs
max_upload_size
id330026
size440,297
Vincent yu (yutiansut)

documentation

https://docs.rs/quantaxis-rs/

README

QUANTAXIS-RS 这是你没有见过的QUANTAXIS的全新版本

Rust

特性

  • 完整的quantaxis Account/Data/Indicator功能 支持快速的回测
  • 单票分钟线2年回测在500ms
  • 单指标计算在70ns
  • 完整的测试工具,对于每个函数都有完整对应的测试
  • 完整的benchmark工具链

兼容性

  • 兼容python版本的QUANTAXIS回测

  • 兼容基于QIFI协议的所有项目

power by yutiansut/somewheve

2020

update MARKET_PRESET


import QUANTAXIS as QA


mp = QA.QAARP.MARKET_PRESET()
for k,i in mp.table.items():
    print(f"""market_preset.insert(
            "{k}".to_string(),
            CodePreset {{
                name: "{i['name']}".to_string(),
                unit_table: {int(i['unit_table'])},
                price_tick: {float(i['price_tick'])},
                buy_frozen_coeff: {i['buy_frozen_coeff']},
                sell_frozen_coeff:{i['sell_frozen_coeff']},
                exchange: "{i['exchange']}".to_string(),
                commission_coeff_peramount: {float(i['commission_coeff_peramount'])},
                commission_coeff_pervol:{float(i['commission_coeff_pervol'])},
                commission_coeff_today_peramount: {float(i['commission_coeff_today_peramount'])},
                commission_coeff_today_pervol: {float(i['commission_coeff_today_pervol'])},
            }},
        );""")

Commit count: 172

cargo fmt