# -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
# -----------------------------------------------------------------------------
try:
basestring # Python 3
except NameError:
basestring = str # Python 2
import hashlib
import math
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import AuthenticationError
from ccxt.base.errors import PermissionDenied
from ccxt.base.errors import AccountSuspended
from ccxt.base.errors import ArgumentsRequired
from ccxt.base.errors import BadRequest
from ccxt.base.errors import InsufficientFunds
from ccxt.base.errors import InvalidAddress
from ccxt.base.errors import InvalidOrder
from ccxt.base.errors import OrderNotFound
from ccxt.base.errors import CancelPending
from ccxt.base.errors import NotSupported
from ccxt.base.errors import DDoSProtection
from ccxt.base.errors import ExchangeNotAvailable
from ccxt.base.errors import InvalidNonce
from ccxt.base.errors import RequestTimeout
class okex3 (Exchange):
def describe(self):
return self.deep_extend(super(okex3, self).describe(), {
'id': 'okex3',
'name': 'OKEX',
'countries': ['CN', 'US'],
'version': 'v3',
'rateLimit': 1000, # up to 3000 requests per 5 minutes ≈ 600 requests per minute ≈ 10 requests per second ≈ 100 ms
'has': {
'CORS': False,
'fetchOHLCV': True,
'fetchOrder': True,
'fetchOrders': False,
'fetchOpenOrders': True,
'fetchClosedOrders': True,
'fetchCurrencies': False, # see below
'fetchDeposits': True,
'fetchWithdrawals': True,
'fetchTransactions': False,
'fetchMyTrades': False, # they don't have it
'fetchDepositAddress': True,
'fetchOrderTrades': True,
'fetchTickers': True,
'fetchLedger': True,
'withdraw': True,
'futures': True,
},
'timeframes': {
'1m': '60',
'3m': '180',
'5m': '300',
'15m': '900',
'30m': '1800',
'1h': '3600',
'2h': '7200',
'4h': '14400',
'6h': '21600',
'12h': '43200',
'1d': '86400',
'1w': '604800',
},
'urls': {
'logo': 'https://user-images.githubusercontent.com/1294454/32552768-0d6dd3c6-c4a6-11e7-90f8-c043b64756a7.jpg',
'api': 'https://www.okex.com',
'www': 'https://www.okex.com',
'doc': 'https://www.okex.com/docs/en/',
'fees': 'https://www.okex.com/pages/products/fees.html',
},
'api': {
'general': {
'get': [
'time',
],
},
'account': {
'get': [
'currencies',
'wallet',
'wallet/{currency}',
'withdrawal/fee',
'withdrawal/history',
'withdrawal/history/{currency}',
'ledger',
'deposit/address',
'deposit/history',
'deposit/history/{currency}',
],
'post': [
'transfer',
'withdrawal',
],
},
'spot': {
'get': [
'accounts',
'accounts/{currency}',
'accounts/{currency}/ledger',
'orders',
'orders_pending',
'orders/{order_id}',
'orders/{client_oid}',
'fills',
# public
'instruments',
'instruments/{instrument_id}/book',
'instruments/ticker',
'instruments/{instrument_id}/ticker',
'instruments/{instrument_id}/trades',
'instruments/{instrument_id}/candles',
],
'post': [
'orders',
'batch_orders',
'cancel_orders/{order_id}',
'cancel_orders/{client_oid}',
'cancel_batch_orders',
],
},
'margin': {
'get': [
'accounts',
'accounts/{instrument_id}',
'accounts/{instrument_id}/ledger',
'accounts/availability',
'accounts/{instrument_id}/availability',
'accounts/borrowed',
'accounts/{instrument_id}/borrowed',
'orders',
'orders/{order_id}',
'orders/{client_oid}',
'orders_pending',
'fills',
],
'post': [
'accounts/borrow',
'accounts/repayment',
'orders',
'batch_orders',
'cancel_orders',
'cancel_orders/{order_id}',
'cancel_orders/{client_oid}',
'cancel_batch_orders',
],
},
'futures': {
'get': [
'position',
'{instrument_id}/position',
'accounts',
'accounts/{currency}',
'accounts/{currency}/leverage',
'accounts/{currency}/ledger',
'orders/{instrument_id}',
'orders/{instrument_id}/{order_id}',
'orders/{instrument_id}/{client_oid}',
'fills',
# public
'instruments',
'instruments/{instrument_id}/book',
'instruments/ticker',
'instruments/{instrument_id}/ticker',
'instruments/{instrument_id}/trades',
'instruments/{instrument_id}/candles',
'accounts/{instrument_id}/holds',
'instruments/{instrument_id}/index',
'rate',
'instruments/{instrument_id}/estimated_price',
'instruments/{instrument_id}/open_interest',
'instruments/{instrument_id}/price_limit',
'instruments/{instrument_id}/liquidation',
'instruments/{instrument_id}/mark_price',
],
'post': [
'accounts/{currency}/leverage',
'order',
'orders',
'cancel_order/{instrument_id}/{order_id}',
'cancel_order/{instrument_id}/{client_oid}',
'cancel_batch_orders/{instrument_id}',
],
},
'swap': {
'get': [
'position',
'{instrument_id}/position',
'acc
没有合适的资源?快使用搜索试试~ 我知道了~
PyPI 官网下载 | ccxt-1.18.581.tar.gz
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 108 浏览量
2022-01-09
18:27:43
上传
评论
收藏 970KB GZ 举报
温馨提示
共306个文件
py:295个
txt:5个
pkg-info:2个
资源来自pypi官网。 资源全名:ccxt-1.18.581.tar.gz
资源推荐
资源详情
资源评论
收起资源包目录
PyPI 官网下载 | ccxt-1.18.581.tar.gz (306个子文件)
setup.cfg 205B
MANIFEST.in 100B
package.json 10KB
PKG-INFO 111KB
PKG-INFO 111KB
okex3.py 113KB
okex3.py 113KB
exchange.py 74KB
exmo.py 65KB
exmo.py 65KB
mandala.py 60KB
mandala.py 60KB
upbit.py 58KB
upbit.py 57KB
binance.py 52KB
kraken.py 52KB
binance.py 52KB
kraken.py 52KB
kucoin.py 51KB
hitbtc2.py 51KB
kucoin.py 51KB
hitbtc2.py 50KB
uex.py 50KB
uex.py 50KB
poloniex.py 48KB
poloniex.py 48KB
anxpro.py 47KB
anxpro.py 47KB
crex24.py 47KB
crex24.py 46KB
okcoinusd.py 46KB
okcoinusd.py 46KB
huobipro.py 45KB
huobipro.py 45KB
bitz.py 43KB
bitz.py 43KB
bittrex.py 42KB
bittrex.py 42KB
bitfinex.py 40KB
bitfinex.py 40KB
bitmex.py 39KB
bitmex.py 39KB
theocean.py 38KB
theocean.py 37KB
cointiger.py 37KB
bcex.py 37KB
cointiger.py 36KB
bcex.py 36KB
coss.py 36KB
coss.py 35KB
bitstamp.py 35KB
bitstamp.py 35KB
hitbtc.py 33KB
hitbtc.py 33KB
livecoin.py 32KB
cryptopia.py 32KB
livecoin.py 32KB
cobinhood.py 31KB
cryptopia.py 31KB
cobinhood.py 31KB
coinex.py 31KB
bibox.py 31KB
gdax.py 31KB
coinex.py 30KB
bibox.py 30KB
liqui.py 30KB
gdax.py 30KB
liqui.py 30KB
dsx.py 28KB
gateio.py 28KB
dsx.py 28KB
stronghold.py 28KB
gateio.py 28KB
stronghold.py 28KB
rightbtc.py 28KB
buda.py 28KB
rightbtc.py 27KB
buda.py 27KB
bigone.py 27KB
bigone.py 27KB
coinexchange.py 26KB
coinexchange.py 26KB
coinbase.py 25KB
coinbase.py 25KB
liquid.py 25KB
liquid.py 24KB
indodax.py 23KB
indodax.py 23KB
deribit.py 23KB
deribit.py 23KB
zb.py 22KB
zb.py 22KB
bitfinex2.py 22KB
bitfinex2.py 22KB
bitbank.py 21KB
bitbank.py 21KB
quadrigacx.py 21KB
quadrigacx.py 21KB
braziliex.py 21KB
cex.py 20KB
共 306 条
- 1
- 2
- 3
- 4
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功