# -*- 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',
'order_algo/{instrument_id}',
'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',
'accounts/margin_mode',
'order',
'orders',
'order_algo',
'cancel_algos',
'cancel_order/{instrument_id}/{order_id}',
'cancel_order/{instrument_id}/{client_oid}',
'cancel_batch_orders/{instrument_id}',
],
没有合适的资源?快使用搜索试试~ 我知道了~
PyPI 官网下载 | ccxt-1.18.1217.tar.gz
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 112 浏览量
2022-01-09
18:26:23
上传
评论
收藏 1.09MB GZ 举报
温馨提示
共294个文件
py:283个
txt:5个
pkg-info:2个
资源来自pypi官网。 资源全名:ccxt-1.18.1217.tar.gz
资源详情
资源评论
资源推荐
收起资源包目录
PyPI 官网下载 | ccxt-1.18.1217.tar.gz (294个子文件)
setup.cfg 205B
MANIFEST.in 100B
package.json 11KB
PKG-INFO 106KB
PKG-INFO 106KB
okex3.py 112KB
okex3.py 112KB
exchange.py 80KB
mandala.py 77KB
mandala.py 76KB
exmo.py 71KB
exmo.py 70KB
adara.py 62KB
adara.py 62KB
kucoin.py 60KB
kucoin.py 59KB
upbit.py 59KB
upbit.py 59KB
binance.py 55KB
binance.py 55KB
bittrex.py 54KB
bittrex.py 53KB
hitbtc2.py 53KB
hitbtc2.py 53KB
kraken.py 52KB
kraken.py 52KB
poloniex.py 49KB
poloniex.py 49KB
anxpro.py 48KB
anxpro.py 48KB
bitmex.py 48KB
therock.py 48KB
crex24.py 48KB
bitmex.py 48KB
therock.py 48KB
crex24.py 48KB
huobipro.py 47KB
huobipro.py 47KB
coinbase.py 47KB
coinbase.py 47KB
okcoinusd.py 46KB
okcoinusd.py 46KB
dsx.py 45KB
dsx.py 44KB
cex.py 44KB
cex.py 43KB
bitfinex.py 43KB
bitfinex.py 43KB
bitz.py 42KB
bitz.py 42KB
bitbay.py 42KB
bitbay.py 42KB
digifinex.py 41KB
digifinex.py 41KB
idex.py 39KB
bitstamp.py 38KB
idex.py 38KB
bitstamp.py 38KB
theocean.py 38KB
theocean.py 37KB
bcex.py 36KB
cointiger.py 36KB
bcex.py 36KB
hitbtc.py 36KB
cointiger.py 36KB
hitbtc.py 36KB
coss.py 36KB
coss.py 35KB
yobit.py 34KB
yobit.py 34KB
coinex.py 33KB
coinex.py 32KB
bibox.py 32KB
livecoin.py 32KB
bibox.py 32KB
livecoin.py 32KB
cobinhood.py 32KB
bitmart.py 32KB
tidex.py 32KB
cobinhood.py 31KB
bitmart.py 31KB
tidex.py 31KB
gdax.py 31KB
gdax.py 30KB
latoken.py 30KB
latoken.py 30KB
deribit.py 30KB
deribit.py 30KB
liquid.py 29KB
liquid.py 29KB
stronghold.py 28KB
buda.py 28KB
stronghold.py 28KB
gateio.py 28KB
buda.py 28KB
gemini.py 28KB
gateio.py 27KB
gemini.py 27KB
bigone.py 27KB
rightbtc.py 27KB
共 294 条
- 1
- 2
- 3
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0