walutomat 0.1.0

Walutomat API client
Documentation
1
2
3
4
5
6
7
8
9
10
11
extern crate walutomat;

fn main() {
  let client = walutomat::v1::Client::new("https://api.walutomat.pl", "", "");
  let orderbook = client.get_orderbook("EUR_PLN").unwrap();
  
  println!("{}", orderbook.pair);
  for entry in orderbook.asks.iter().zip(orderbook.bids) {
    println!("{} {}", entry.0.price, entry.1.price);
  }
}