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
use *;
set_access_key;
set_secret_key;
APIs
use *;
// api_exchange
let account_info = get_account_info.await;
let order_chance = get_order_chance.await;
let order_status = get_order_status.await;
let order_status_list = list_order_status.await;
let order_info = order_by_price.await;
let order_info = sell_by_market_price.await;
let order_info = cancel_order.await;
// api_withdraw
let withdraw_result = withdraw_krw.await;
let withdraw_info = get_withdraw_info.await;
let withdraw_info_list = list_withdraw_info.await;
let withdraw_chance = get_withdraw_chance.await;
let withdraw_result_more_info = withdraw_coin.await;
// api_deposit
let deposit_result = deposit_krw.await
let deposit_result = get_deposit_info.await;
let deposit_result = list_deposit_info.await;
let coin_address_info = get_coin_address_info.await:
let coin_address_info_list = list_coin_address_info.await;
// api_quotation
let order_book_info = get_orderbook_info.await;
let ticker_snapshot = get_ticker_snapshot.await;
let recent_trade_list = list_trade_recent.await;
let market_state = get_market_state.await;
let chart_of_minute = get_candle_minute.await;
let chart_of_day = get_candle_day.await;
let chart_of_week = get_candle_week.await;
let chart_of_month = get_candle_month.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