Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pybithumb
- bithumb = pybithumb.Bithumb(
- "public_key",
- "private_key"
- )
- _, _, 현금, _ = bithumb.get_balance("XRP")
- print(현금)
- orderbook = pybithumb.get_orderbook("XRP")
- asks = orderbook['asks']
- sell_price = asks[0]['price']
- unit = 현금/float(sell_price)
- print(unit)
- order = bithumb.buy_market_order("XRP", unit)
- print(order)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement