aiopyupbit is python wrapper for upbit API for asyncio and Python which is base on pyupbit
Installing: pip install aiopyupbit
aiopyupbit syntax strives to be similar to pyupbit.
import asyncio
import aiopyupbit
async def main():
print(await aiopyupbit.get_tickers())
print(await aiopyupbit.get_current_price("KRW-BTC"))
print(await aiopyupbit.get_current_price(["KRW-BTC", "KRW-XRP"]))
print(await aiopyupbit.get_ohlcv("KRW-BTC"))
...
if __name__ == "__main__":
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
loop.run_until_complete(main)
Some features are not currently implemented:
- WebSocketManager class
Please report any issues via github issues