upbit-api on rust, with upbit api v1.3.4

this crate is dependant on tokio

it also requires openssl-sys package

Set access key and secret key

```rust use upbit::*;

upbit::setaccesskey(""); upbit::setsecretkey(""); ```

APIs

```rust use upbit::*;

// apiexchange let accountinfo = apiexchange::getaccount_info().await;

let orderchance = apiexchange::getorderchance("KRW-ETH").await; let orderstatus = apiexchange::getorderstatus(Some("9ca023a5-851b-4fec-9f0a-48cd83c2eaae"), None).await; let orderstatuslist = apiexchange::getorderstatuslist().await;

let orderinfo = apiexchange::orderbyprice("KRW-ETH", OrderSide::Bid, 5000.0, 1435085.0, OrderType::Limit, None).await; let orderinfo = apiexchange::sellbymarketprice("KRW-ETH", 1.0, "cdd92199-2897-4e14-9448-f923320408ad").await; let orderinfo = apiexchange::cancelorder("cdd92199-2897-4e14-9448-f923320408ad").await;

// apiwithdraw let withdrawinfo = apiwithdraw::getwithdrawinfo(None, Some("cdd92199-2897-4e14-9448-f923320408ad"), None).await; let listwithdrawinfo = apiwithdraw::listwithdrawinfo("KRW", WithdrawState::Done, None, None, 10, 0, OrderBy::Asc).await; let withdrawchance = apiwithdraw::getwithdrawchance("KRW", None).await;

// apiquotation let orderbookinfo = apiquotation::getorderbookinfo("KRW-ETH").await; let tickersnapshot = apiquotation::request("KRW-ETH").await; let recenttradelist = apiquotation::request("KRW-ETH", None, 3, "0".tostring(), None).await; let marketstate = apiquotation::request(true).await;

let chartofminute = apiquotation::requestcandle("KRW-ETH", None, 50, CandleMinute::Min10).await; let chartofday = apiquotation::requestcandle("KRW-ETH", 10, None, None).await; let chartofweek = apiquotation::requestcandle("KRW-ETH", 10, None).await; let chartofmonth = apiquotation::requestcandle("KRW-ETH", 10, None).await;

```

TroubleShooting

1. You must have a static ip address to get issued your own access key and secret key

2. Failed to run custom build command for openssl-sys vX.X.XX

If you have trouble installing with 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