1 unstable release

0.1.0 Apr 23, 2019

#33 in #market

MIT license

17KB
401 lines

walutomat-rs is a Rust library for interacting with Walutomat API.

  • Currency exchange on P2P currency market
  • Currency exchange with CurrencyOne, at guaranteed price
  • International transfers
extern crate walutomat;

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



lib.rs:

Walutomat API

walutomat-rs is a client for Walutomat API.

Dependencies

~20MB
~443K SLoC