19 releases
new 0.2.15 | Nov 13, 2024 |
---|---|
0.2.14 | Nov 12, 2024 |
0.2.10 | May 8, 2024 |
0.2.9 | Mar 30, 2024 |
0.1.1 | Jan 8, 2024 |
#66 in Finance
565 downloads per month
105KB
2K
SLoC
Trading 212 Rust API
A minimal asynchronous interface to Trading 212, intended for (but not limited to) implementing bots.
[!WARNING] This is very experimental and probably contains bugs and invalid documentation, use with caution
The API is documented here It is bound to change as it is v0 and currently in Beta
lib.rs
:
A library for interacting with the Trading212 API
This is very experimental and probably contains bugs and invalid documentation, use with caution
Example
use trading212::Client;
#[tokio::main]
async fn main() {
let client = Client::new("token", trading212::Target::Demo).unwrap();
let exchanges = client.get_exchanges().await.unwrap();
println!("{:?}", exchanges);
}
The API is documented here It is bound to change as it is v0 and currently in Beta
Dependencies
~6–19MB
~233K SLoC