Giter Club home page Giter Club logo

pybithumb's Introduction

bithumb-api

Python Wrapper for Bithumb API

Installation

pip install pybithumb

Import

from pybithumb import Bithumb

Public API

암호화폐 목록

빗썸이 지원하는 암호화폐 목록을 얻어온다.

print(Bithumb.get_tickers())

최근 체결가격

for coin in Bithumb.get_tickers():
    print(coin, Bithumb.get_current_price(coin))

시장 현황 상세정보

for coin in  Bithumb.get_tickers():
    print(coin, Bithumb.get_market_detail(coin))

매수/매도 호가

for coin in  Bithumb.get_tickers():
    print(coin, Bithumb.get_orderbook(coin))

Private API

로그인

connectkey와 secretkey를 사용해서 로그인한다. 두 key를 생성하는 방법은 링크를 참조한다.

bithumb = Bithumb("conkey", "seckey")

수수료 조회

print(bithumb.get_trading_fee())

잔고 조회

for coin in Bithumb.get_tickers():
    print(coin, bithumb.get_balance(coin))

매수/매도 주문

비트코인을 1100만원에 1개 매수/매도한다.

desc = bithumb.buy_limit_order("BTC", 11000000, 1)
desc = bithumb.sell_limit_order("BTC", 11000000, 1)

매수/매도 잔량 확인

quanity = bithumb.get_outstanding_order(desc)

매수/매도 주문 취소

status = bithumb.cancel_order(desc)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.