Initial commit: 首次建仓,建立目录结构
This commit is contained in:
@ -0,0 +1,85 @@
|
||||
# -*- 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.pro.bybit import bybit
|
||||
from ccxt.base.types import Any
|
||||
|
||||
import ccxt.async_support.bybiteu as bybiteuRest
|
||||
|
||||
|
||||
class bybiteu(bybit):
|
||||
|
||||
def describe(self) -> Any:
|
||||
# eslint-disable-next-line new-cap
|
||||
restInstance = bybiteuRest()
|
||||
restDescribe = restInstance.describe()
|
||||
parentWsDescribe = super(bybiteu, self).describe_data()
|
||||
extended = self.deep_extend(restDescribe, parentWsDescribe)
|
||||
return self.deep_extend(extended, {
|
||||
'id': 'bybiteu',
|
||||
'name': 'Bybit EU',
|
||||
'countries': ['EU'],
|
||||
'hostname': 'bybit.eu',
|
||||
'certified': False,
|
||||
'urls': {
|
||||
'api': {
|
||||
'ws': {
|
||||
'public': {
|
||||
'spot': 'wss://stream.{hostname}/v5/public/spot',
|
||||
'inverse': 'wss://stream.{hostname}/v5/public/inverse',
|
||||
'option': 'wss://stream.{hostname}/v5/public/option',
|
||||
'linear': 'wss://stream.{hostname}/v5/public/linear',
|
||||
},
|
||||
'private': {
|
||||
'spot': {
|
||||
'unified': 'wss://stream.{hostname}/v5/private',
|
||||
'nonUnified': 'wss://stream.{hostname}/spot/private/v3',
|
||||
},
|
||||
'contract': 'wss://stream.{hostname}/v5/private',
|
||||
'usdc': 'wss://stream.{hostname}/trade/option/usdc/private/v1',
|
||||
'trade': 'wss://stream.bybit.eu/v5/trade',
|
||||
},
|
||||
},
|
||||
},
|
||||
'test': {
|
||||
'ws': {
|
||||
'public': {
|
||||
'spot': 'wss://stream-testnet.{hostname}/v5/public/spot',
|
||||
'inverse': 'wss://stream-testnet.{hostname}/v5/public/inverse',
|
||||
'linear': 'wss://stream-testnet.{hostname}/v5/public/linear',
|
||||
'option': 'wss://stream-testnet.{hostname}/v5/public/option',
|
||||
},
|
||||
'private': {
|
||||
'spot': {
|
||||
'unified': 'wss://stream-testnet.{hostname}/v5/private',
|
||||
'nonUnified': 'wss://stream-testnet.{hostname}/spot/private/v3',
|
||||
},
|
||||
'contract': 'wss://stream-testnet.{hostname}/v5/private',
|
||||
'usdc': 'wss://stream-testnet.{hostname}/trade/option/usdc/private/v1',
|
||||
'trade': 'wss://stream-testnet.bybit.eu/v5/trade',
|
||||
},
|
||||
},
|
||||
},
|
||||
'demotrading': {
|
||||
'ws': {
|
||||
'public': {
|
||||
'spot': 'wss://stream.{hostname}/v5/public/spot',
|
||||
'inverse': 'wss://stream.{hostname}/v5/public/inverse',
|
||||
'option': 'wss://stream.{hostname}/v5/public/option',
|
||||
'linear': 'wss://stream.{hostname}/v5/public/linear',
|
||||
},
|
||||
'private': {
|
||||
'spot': {
|
||||
'unified': 'wss://stream-demo.{hostname}/v5/private',
|
||||
'nonUnified': 'wss://stream-demo.{hostname}/spot/private/v3',
|
||||
},
|
||||
'contract': 'wss://stream-demo.{hostname}/v5/private',
|
||||
'usdc': 'wss://stream-demo.{hostname}/trade/option/usdc/private/v1',
|
||||
'trade': 'wss://stream-demo.bybit.eu/v5/trade',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user