Luno-rs (async)

The Luno API wrapper written in rust of rust in rust prorgram https://www.luno.com/en/developers/api.

Dependencies

Configuration

  1. Add to Cargo.toml luno_rs = "0.1.1" or luno_rs = { git="https://github.com/borngraced/luno-rs"}
  2. Get your api key and secret from luno.com
  3. Create .env file in your project route and configure with: API_KEY=myapikey API_SECRET=myapisecret
  4. import Luno client to your project and initialize use luno_rs::Luno;

```rust

[tokio::test] // any other async runtime can be used, not limited to tokio

async fn testlunoasync() { dotenv::dotenv().ok(); let key = env::var("APIKEY").expect("Api Key doesn't exist yet, please add"); let secret = env::var("APISECRET").expect("Api Key Secret doesn't exist yet, please add"); let luno = lunors::Luno::init(key, secret).await; let balance = luno.getallbalance().await; assert!(tickers.isok()); let all_balance: Vec = balance.unwrap(); print!("{balance:#?}") } ```

Available METHODS regularly (more will be added until completion)

available endpoints

  1. [x] create_account()
  2. [x] getallbalance()
  3. [x] get_ticker(pair: "XBTNGN")
  4. [x] getalltickers()
  5. [x] getfullorder_book(pair: "XBTNGN")
  6. [x] gettoporder_book(pair: "XBTNGN")

    Todos

  7. [ ] updateaccountname

  8. [ ] listpendingtransactions
  9. [ ] list_transactions
  10. [ ] listaccountbalances
  11. [ ] listrecenttrades
  12. [ ] get_candles
  13. [ ] getmarketsinfo
  14. [ ] list_orders
  15. [ ] list_trades
  16. [ ] postmarketorder
  17. [ ] get_order
  18. [ ] postlimitorder
  19. [ ] cancel_order
  20. [ ] getreceiveraddress
  21. [ ] createreceiveraddress
  22. [ ] send
  23. [ ] estimatesendfee
  24. [ ] listwithdrawalrequest
  25. [ ] requestawithdrawal
  26. [ ] getwithdrawalrequest
  27. [ ] cancelwithdrawalrequest
  28. [ ] list_transfers
  29. [ ] list_eneficiaries

CONTRIBUTING

feel free to work on any of the todos:)

https://www.luno.com/en/developers/api.