GithubHelp home page GithubHelp logo

okex-api-v3's Introduction

okex-api-v3

Python wrapper aimed to simplify usage Okex REST API v3 for Spot

Full rest api docs https://www.okex.com/docs/en/

Usage

Get tickers

from okex_api_spot import *
okex = Okex('<your_api_key>', '<your_secret_key>', '<your_pass_phrase>', '<your_fund_password>')

get_tickers = okex.get_ticker()

Json response (get_tickers)

[
  {
    'best_ask': '0.06772422',
    'best_bid': '0.0676666',
    'instrument_id': 'BCH-BTC',
    'product_id': 'BCH-BTC',
    'last': '0.06773899',
    'ask': '0.06772422',
    'bid': '0.0676666',
    'open_24h': '0.06768605',
    'high_24h': '0.06807742',
    'low_24h': '0.06745257',
    'base_volume_24h': '29429',
    'timestamp': '2018-10-28T14:36:22.110Z',
    'quote_volume_24h': '1992'
  },
  {
    'best_ask': '0.00803306',
    'best_bid': '0.0080282',
    'instrument_id': 'LTC-BTC',
    'product_id': 'LTC-BTC',
    'last': '0.00803005',
    'ask': '0.00803306',
    'bid': '0.0080282',
    'open_24h': '0.00802884',
    'high_24h': '0.00806864',
    'low_24h': '0.00801004',
    'base_volume_24h': '459527',
    'timestamp': '2018-10-28T14:36:22.110Z',
    'quote_volume_24h': '3691'
  }
  ...
]

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.