npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

okex_rest_api

v4.0.1

Published

Getting fresh orders in real time. Python client for the Okex API.

Downloads

4

Readme

okex_rest_api

Okex RESTful API (2018)

Getting fresh orders in real time. Python client for the Okex API.

Check out the Interactive Demo

With this module, you can develop your own crypto-bots, analyze crypto-markets and of course, make money.

Our web-service works 24 hours and keeps high loads

The data of all exchanges come in a single format and contain extended information (links for switching to trading pairs, best asks and bids, exchange rates and much more).


  • FREE!
  • The actuality of orders is 5-30 seconds!
  • Data from most exchanges
  • Round-the-clock support

Installation Instructions

$ npm install okex_rest_api

Init example

// Also you can use require method:
// var okex_rest_api = require("okex_rest_api")
import okex_rest_api from 'okex_rest_api';
let KUPINET = new okex_rest_api('freeApi'); // Init Free Api Key

async function getAllStocks() {
    let response = await KUPINET.getAllStocks()
    console.log(response)
}

getAllStocks()

Stocks API

import okex_rest_api from 'okex_rest_api';
let KUPINET = new okex_rest_api('freeApi'); // Init Free Api Key

// Get all stocks
async function getAllStocks() {
    let response = await KUPINET.getAllStocks()
    console.log(response)
}

// Get orders by Stock name
async function getStocksOrders() {
    let response = await KUPINET.getStocksOrders('Okex','ETH','BTC')
    console.log(response)
}

// Get all pairs from the Stock
async function getStocksAllPairs() {
    let response = await KUPINET.getStocksAllPairs('Okex')
    console.log(response)
}

Pairs API

import okex_rest_api from 'okex_rest_api';
let KUPINET = new okex_rest_api('freeApi'); // Init Free Api Key

// Find best prices for Pair in all Stocks
async function getPairBestPrices() {
    let response = await KUPINET.getPairBestPrices('LTC','ETH')
    console.log(response)
}

Find Best Prices API

import okex_rest_api from 'okex_rest_api';
let KUPINET = new okex_rest_api('freeApi'); // Init Free Api Key

// Find best ASK
async function getCoinBestPricesAsk() {
    let response = await KUPINET.getCoinBestPricesAsk('LTC','ETH')
    console.log(response)
}

//Find best BID
async function getCoinBestPricesBid() {
    let response = await KUPINET.getCoinBestPricesBid('LTC','ETH')
    console.log(response)
}

Cryptocurrency Converter (Calculator) API

import okex_rest_api from 'okex_rest_api';
let KUPINET = new okex_rest_api('freeApi'); // Init Free Api Key

// Coins list
async function getCalcData() {
    let response = await KUPINET.getCalcData()
    console.log(response)
}

// Convert Coin to Coin
async function getCalculation() {
    let response = await KUPINET.getCalculation('LTC','ETH', 10)
    console.log(response)
}

In the future

  • Unloading historical trade data
  • Multi-trading through a single terminal
  • Tool for crypto arbitrage
  • API for JavaScript, PHP, C#
  • Launch of a decentralized exchange
  • Widget (calculator) for integration with sites

About us

We are a team of crypto developers. Our goal is to make the most convenient crypto services possible. Contact with us