Automates upbit exchange platform using selenium webdriver
The code was written before the official rest-api for upbit exchange was released.
The official API was released at https://docs.upbit.com/blog/ (2018. 06)
It is for educational purposes only. This code may come in handy when official rest-api is not available.
# upbit uses kakao id/pwd for login
kakao_id_secret = "ur_kakao_id"
kakao_pwd_secret = "ur_pass_wd"
trader = upbitTrader()
trader.set_up_trade("BTC")
# scrapes limit order book information directly from the web
ask_prices, bid_prices, ask_quantities, bid_quantities = trader.collector()
# buy 50% at the best bid price
print(bid_prices[0])
trader.put_buy_order(bid_prices[0], "HALF")
# sell all the coin at best ask price
print(bid_prices[0])
trader.put_sell_order(ask_prices[0], "ALL")
# cancel all order
trader.cancel_all_order()
common library such as BeautifulSoup, selenium, pyperclip
pip install -r requirements.txt
- Lee Hankyol - Initial work - Upbit_Webdriver
This project is licensed under the MIT License - see the LICENSE.md file for details