GithubHelp home page GithubHelp logo

rost381 / bybit-exchange-python-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from m-root/bybit-exchange-python-sdk

0.0 0.0 0.0 27 KB

Unofficial Bybit Exchange API python implementation for automated trading https://bybit-exchange.github.io/bybit-official-api-docs/en/index.html

Python 100.00%

bybit-exchange-python-sdk's Introduction

bybit-exchange-python-sdk

This is an unofficial Bybit Exchange API python implementation for automated trading. Find the documentation here.

Features

  • Implementation of all General, Market Data and Account endpoints.
  • Simple handling of authentication
  • No need to generate timestamps yourself, the wrapper does it for you
  • Response exception handling
  • Historical Kline/Candle fetching function

Quick Start

To register an account with Bybit Click here

To Generate an API Key and assign relevant permissions Click here

Python

from bybit import Bybit
client = Client(api_key, api_secret)

# get exchange symbols
depth = Bybit().get_symbols()


# get all symbol prices
prices = Bybit().get_klines('BTCUSD', '15', '1563367231')


# Create Market Buy Orders
auth = Bybit().auth(key, secret)
prices = buy('BTCUSD', 9550, 1.000)




# Create Market Sell Orders
auth = Bybit().auth(key, secret)
prices = buy('BTCUSD', 9550, 1.000)




# Create Market Buy Limit Orders
auth = Bybit().auth(key, secret)
prices = buy('BTCUSD', 9550, 1.000)




# Create Market Sell Limit Orders
auth = Bybit().auth(key, secret)
prices = buy('BTCUSD', 9550, 1.000)




# Cancelling an order
auth = Bybit().auth(key, secret)
prices = cancel_order(order_id)

For more check out the documentation

https://bybit-exchange.github.io/bybit-official-api-docs/en/index.html

bybit-exchange-python-sdk's People

Contributors

m-root avatar

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.