#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

#47 in Finance

Download history 8/week @ 2024-01-06 11/week @ 2024-02-17 27/week @ 2024-02-24 124/week @ 2024-03-09 603/week @ 2024-03-16 459/week @ 2024-03-23 224/week @ 2024-03-30 5/week @ 2024-04-06 6/week @ 2024-04-13

893 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–20MB
~274K SLoC