Crate trading212

Source
Expand description

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

Modules§

error
Error types
models
Models used by the API

Structs§

Client
The client to use for the API

Enums§

Target
The target to use for the API 0