{"id":14986569,"url":"https://github.com/ujhin/python-upbit-client","last_synced_at":"2025-07-20T06:33:34.181Z","repository":{"id":38326389,"uuid":"328741724","full_name":"uJhin/python-upbit-client","owner":"uJhin","description":"Upbit(업비트) Cryptocurrency Exchange OPEN API Client for Python","archived":false,"fork":false,"pushed_at":"2024-07-17T10:32:07.000Z","size":115,"stargazers_count":49,"open_issues_count":0,"forks_count":38,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T05:51:11.369Z","etag":null,"topics":["api","api-client","api-rest","crypto","crypto-exchange","cryptocurrency","cryptocurrency-exchanges","market-data","open-api","python","python-upbit","sdk","swagger","swagger-codegen","trading","ujhin","upbit","upbit-api","upbit-client","upbit-exchange"],"latest_commit_sha":null,"homepage":"https://ujhin.github.io/upbit-client-docs","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uJhin.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-11T17:31:01.000Z","updated_at":"2025-01-17T12:12:26.000Z","dependencies_parsed_at":"2024-11-07T08:10:49.153Z","dependency_job_id":null,"html_url":"https://github.com/uJhin/python-upbit-client","commit_stats":{"total_commits":108,"total_committers":5,"mean_commits":21.6,"dds":"0.37037037037037035","last_synced_commit":"c79793038520330ff7232e106ffadbf92d3a00ce"},"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"purl":"pkg:github/uJhin/python-upbit-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uJhin%2Fpython-upbit-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uJhin%2Fpython-upbit-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uJhin%2Fpython-upbit-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uJhin%2Fpython-upbit-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uJhin","download_url":"https://codeload.github.com/uJhin/python-upbit-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uJhin%2Fpython-upbit-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266076378,"owners_count":23872748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-client","api-rest","crypto","crypto-exchange","cryptocurrency","cryptocurrency-exchanges","market-data","open-api","python","python-upbit","sdk","swagger","swagger-codegen","trading","ujhin","upbit","upbit-api","upbit-client","upbit-exchange"],"created_at":"2024-09-24T14:13:09.363Z","updated_at":"2025-07-20T06:33:34.157Z","avatar_url":"https://github.com/uJhin.png","language":"Python","readme":".. image:: https://raw.githubusercontent.com/uJhin/upbit-client/main/logo/logo.png\n    :align: center\n\n- `Base Repository \u003chttps://github.com/uJhin/upbit-client/\u003e`_\n- `Python Upbit Client Repository \u003chttps://github.com/uJhin/python-upbit-client\u003e`_\n\nUpbit OPEN API Client\n######################\n- @Author: `uJhin \u003chttps://github.com/uJhin\u003e`_\n- @GitHub: https://github.com/uJhin/upbit-client/\n- @Official Documents: https://ujhin.github.io/upbit-client-docs/\n\nInstall\n*******\n- pip command\n\n.. code:: console\n\n    pip install upbit-client\n\n- git command\n\n.. code:: console\n\n    git clone https://github.com/uJhin/python-upbit-client.git\n\n\nQuick Start\n***************\n\nREST Client\n===========\n\n- Check Your API Keys\n\n.. code:: python\n\n    # /v1/api_keys\n\n    from upbit.client import Upbit\n\n    access_key = \"Your Access Key\"\n    secret_key = \"Your Secret Key\"\n\n    client = Upbit(access_key, secret_key)\n    api_keys = client.APIKey.APIKey_info()\n    print(api_keys['result'])\n\n\n- Buy Currency\n\n.. code:: python\n\n    # /v1/orders\n\n    from upbit.client import Upbit\n\n    access_key = \"Your Access Key\"\n    secret_key = \"Your Secret Key\"\n\n    client = Upbit(access_key, secret_key)\n    order = client.Order.Order_new(\n        market='KRW-BTC',\n        side='bid',\n        volume='0.1',\n        price='3000000',\n        ord_type='limit'\n    )\n    print(order['result'])\n\n\n- Sell Currency\n\n.. code:: python\n\n    # /v1/orders\n\n    from upbit.client import Upbit\n\n    access_key = \"Your Access Key\"\n    secret_key = \"Your Secret Key\"\n\n    client = Upbit(access_key, secret_key)\n    order = client.Order.Order_new(\n        market='KRW-BTC',\n        side='ask',\n        volume='0.1',\n        price='3000000',\n        ord_type='limit'\n    )\n    print(order['result'])\n\nWebSocket Client\n================\n\n- Get Real-Time Ticker\n\n.. code:: python\n\n    # Using WebSocket\n\n    import json\n    import asyncio\n\n    from upbit.websocket import UpbitWebSocket\n\n\n    # Definition async function\n    async def ticker(sock, payload):\n        async with sock as conn:\n            await conn.send(payload)\n            while True:\n                recv = await conn.recv()\n                data = recv.decode('utf8')\n                result = json.loads(data)\n                print(result)\n\n\n    sock = UpbitWebSocket()\n\n    currencies = ['KRW-BTC', 'KRW-ETH']\n    type_field = sock.generate_type_field(\n        type='ticker',\n        codes=currencies,\n    )\n    payload = sock.generate_payload(\n        type_fields=[type_field]\n    )\n\n    event_loop = asyncio.get_event_loop()\n    event_loop.run_until_complete( ticker(sock, payload) )\n\nDonation\n*********\n.. image:: https://img.shields.io/badge/BTC-3NVw2seiTQddGQwc1apqudKxuTqebpyL3s-blue?style=flat-square\u0026logo=bitcoin\n  :alt: uJhin's BTC\n.. image:: https://img.shields.io/badge/ETH-0x60dd373f59862d9df776596889b997e24bee42eb-blue?style=flat-square\u0026logo=ethereum\n  :alt: uJhin's ETH\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fujhin%2Fpython-upbit-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fujhin%2Fpython-upbit-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fujhin%2Fpython-upbit-client/lists"}