Skip to main content

Upbit API

Project description

upbit.py

PyPi

Upbit API (업비트 API)

Install

pip install upbit.py

Example

Quotation

import upbit

print(upbit.get_markets())

Exchange

import upbit

client = upbit.Client('your_access_key', 'your_secret_key')
print(client.get_accounts())

WebSocket

import upbit

class WS(upbit.WebSocket):
    async def on_connect(self):
        print('connect')
        await self.send_field()
        
    async def on_disconnect(self):
        print('disconnect')
        
    async def on_data(self, data: dict):
        print(data)

WS().run()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

upbit.py-1.0.3.tar.gz (6.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page