#trading #bot #interface #api #asynchronous #client

trading212

A library for interacting with the Trading212 API

13 releases

0.2.9 Mar 30, 2024
0.2.8 Mar 28, 2024
0.1.2 Mar 13, 2024
0.1.1 Jan 8, 2024

#41 in Finance

Download history 6/week @ 2024-01-02 2/week @ 2024-01-09 2/week @ 2024-02-13 22/week @ 2024-02-20 14/week @ 2024-02-27 134/week @ 2024-03-12 903/week @ 2024-03-19 300/week @ 2024-03-26 78/week @ 2024-04-02

1,415 downloads per month

Custom license

105KB
2K SLoC

Trading 212 Rust API

MIT licensed Crates.io docs.rs

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
~268K SLoC