| Crates.io | moabdb |
| lib.rs | moabdb |
| version | 0.1.1 |
| created_at | 2022-12-09 04:11:34.972506+00 |
| updated_at | 2022-12-13 23:30:55.47512+00 |
| description | A Rust client for the MoabDB database |
| homepage | https://www.moabdb.com |
| repository | https://github.com/MoabDB/moabdb-rs |
| max_upload_size | |
| id | 732980 |
| size | 15,655 |
MoabDB loves Rust! This library makes it super easy to use MoabDB in your Rust projects. It's a simple wrapper around the MoabDB HTTP API.
Add this to your Cargo.toml:
[dependencies]
moabdb = "*"
Create a time window to search for data:
let window = WindowBuilder::new()
.length(Years(1))
.build()
.expect("Failed to create time window");
Send a query to MoabDB:
let df = moabdb::get_equity("AAPL", window, false, None).expect("Failed to get data");
The design of the library is targeted at being identical to the Python library. This is so people can easily switch between the two languages without having to learn a new API.
This library is licensed under the MIT license. See the LICENSE file for more information.