brokerage-db 0.2.0

Database management for trader brokerage data with a MongoDB backend.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Public modules.
pub mod account;
pub mod security;
pub mod trade_execution;

// Internal modules.
mod migrations;

use anyhow::Result;
use mongodb::Database;

pub async fn initialize(db: &Database) -> Result<()> {
    migrations::run_migrations(db).await
}