men_in_tights 0.0.2

Unofficial Robinhood API bindings for Rust. 📈
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const BASE_URL: &str = "https://api.robinhood.com";

pub fn api(path: &str) -> String {
    format!("{BASE_URL}/{path}")
}

#[cfg(test)]
mod test {
    use crate::urls;

    #[test]
    fn api() {
        let expected = "https://api.robinhood.com/moneys";
        assert_eq!(urls::api("moneys"), expected)
    }
}