Crates.io | qifi-rs |
lib.rs | qifi-rs |
version | 0.3.0 |
source | src |
created_at | 2021-01-01 07:59:38.310696 |
updated_at | 2021-01-01 07:59:38.310696 |
description | A fast Api and Structure load |
homepage | https://github.com/yutiansut |
repository | https://github.com/yutiansut/qifi-rs |
max_upload_size | |
id | 330020 |
size | 67,597 |
让你使用quantaxis-rs的最佳伴侣
将下面的代码放置至Cargo.toml
qifi-rs = 0.0.1
在各个结构体上我们描述了好用的API来让你进行初始化数据并进行计算
use qifi_rs::{Bar, from_str, from_serde_value};
use serde_json::Value;
fn main() {
let test_json_str = r#"{
"high":2900,
"low":2880,
"open": 2891,
"close": 2899,
"volume":100,
"amount": 51454131
}"#;
let val:Value = from_str(test_json_str).unwrap();
let bar:Bar = from_serde_value(val).unwrap();
println!("{:?}", bar);
}
正在攥写 ~~~