Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
okex_rest_api
Advanced tools
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).
$ npm install okex_rest_api
// 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()
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)
}
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)
}
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)
}
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)
}
We are a team of crypto developers. Our goal is to make the most convenient crypto services possible. Contact with us
FAQs
Getting fresh orders in real time. Python client for the Okex API.
We found that okex_rest_api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.