#trading #bot #api #async #async-client #intended

trading212

A library for interacting with the Trading212 API

19 releases

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

#57 in Finance

Download history 16/week @ 2024-09-23 3/week @ 2024-09-30 565/week @ 2024-11-11 52/week @ 2024-11-18 44/week @ 2024-12-02

661 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–17MB
~234K SLoC