upbit-api on rust
this crate is dependant on sqlx, tokio, postgres this crate also requires openssl-sys package
```rust use rustupbitapi::*;
rustupbitapi::setaccesskey(""); rustupbitapi::setsecretkey(""); ```
```rust use rustupbitapi::*;
let asdf = api::getorderstate(None, None).await.unwrap(); let asdf = api::orderbyprice("KRW-ETH", OrdSide::BID, 5000.0, 1435085.0, OrdType::LIMIT, None).await.unwrap();
let asdf = api::OrderbookInfo::getorderbookinfo("KRW-ETH").await; let asdf = api::TickerSnapshot::request("KRW-ETH").await; let asdf = api::TradeRecent::request("KRW-ETH", None, 3, "0".to_string(), None).await; let asdf = api::MarketState::request(true).await;
let asdf = api::CandleChartMinute::requestcandle("KRW-ETH", None, 50, CandleMinute::Min10).await.unwrap(); let asdf = api::CandleChartDay::requestcandle("KRW-ETH", 10, None, None).await; let asdf = api::CandleChartWeek::request_candle("KRW-ETH", 10, None).await; ```
If you have trouble with installing this error: failed to run custom build command for openssl-sys vX.X.XX
try
```
macOS
$ brew install openssl@1.1
Arch Linux $ sudo pacman -S pkg-config openssl
Debian and Ubuntu $ sudo apt-get install pkg-config libssl-dev
Fedora $ sudo dnf install pkg-config openssl-devel ``` referenced from https://github.com/sfackler/rust-openssl/issues/855#issuecomment-450057552