Enrich markets mock with "type" and "spot" info

This commit is contained in:
Matthias
2021-10-31 18:58:59 +01:00
parent bfca9e7c09
commit 8990097d6f

View File

@@ -575,6 +575,8 @@ def get_markets():
'base': 'ETH', 'base': 'ETH',
'quote': 'BTC', 'quote': 'BTC',
'active': True, 'active': True,
'spot': True,
'type': 'spot',
'precision': { 'precision': {
'price': 8, 'price': 8,
'amount': 8, 'amount': 8,
@@ -604,6 +606,8 @@ def get_markets():
'quote': 'BTC', 'quote': 'BTC',
# According to ccxt, markets without active item set are also active # According to ccxt, markets without active item set are also active
# 'active': True, # 'active': True,
'spot': True,
'type': 'spot',
'precision': { 'precision': {
'price': 8, 'price': 8,
'amount': 8, 'amount': 8,
@@ -632,6 +636,8 @@ def get_markets():
'base': 'BLK', 'base': 'BLK',
'quote': 'BTC', 'quote': 'BTC',
'active': True, 'active': True,
'spot': True,
'type': 'spot',
'precision': { 'precision': {
'price': 8, 'price': 8,
'amount': 8, 'amount': 8,
@@ -660,6 +666,8 @@ def get_markets():
'base': 'LTC', 'base': 'LTC',
'quote': 'BTC', 'quote': 'BTC',
'active': True, 'active': True,
'spot': True,
'type': 'spot',
'precision': { 'precision': {
'price': 8, 'price': 8,
'amount': 8, 'amount': 8,
@@ -685,6 +693,8 @@ def get_markets():
'base': 'XRP', 'base': 'XRP',
'quote': 'BTC', 'quote': 'BTC',
'active': True, 'active': True,
'spot': True,
'type': 'spot',
'precision': { 'precision': {
'price': 8, 'price': 8,
'amount': 8, 'amount': 8,
@@ -710,6 +720,8 @@ def get_markets():
'base': 'NEO', 'base': 'NEO',
'quote': 'BTC', 'quote': 'BTC',
'active': True, 'active': True,
'spot': True,
'type': 'spot',
'precision': { 'precision': {
'price': 8, 'price': 8,
'amount': 8, 'amount': 8,
@@ -735,6 +747,8 @@ def get_markets():
'base': 'BTT', 'base': 'BTT',
'quote': 'BTC', 'quote': 'BTC',
'active': False, 'active': False,
'spot': True,
'type': 'spot',
'precision': { 'precision': {
'base': 8, 'base': 8,
'quote': 8, 'quote': 8,
@@ -762,6 +776,8 @@ def get_markets():
'symbol': 'ETH/USDT', 'symbol': 'ETH/USDT',
'base': 'ETH', 'base': 'ETH',
'quote': 'USDT', 'quote': 'USDT',
'spot': True,
'type': 'spot',
'precision': { 'precision': {
'amount': 8, 'amount': 8,
'price': 8 'price': 8
@@ -785,6 +801,8 @@ def get_markets():
'base': 'LTC', 'base': 'LTC',
'quote': 'USDT', 'quote': 'USDT',
'active': False, 'active': False,
'spot': True,
'type': 'spot',
'precision': { 'precision': {
'amount': 8, 'amount': 8,
'price': 8 'price': 8
@@ -807,6 +825,8 @@ def get_markets():
'base': 'XRP', 'base': 'XRP',
'quote': 'USDT', 'quote': 'USDT',
'active': True, 'active': True,
'spot': True,
'type': 'spot',
'precision': { 'precision': {
'price': 8, 'price': 8,
'amount': 8, 'amount': 8,
@@ -832,6 +852,8 @@ def get_markets():
'base': 'NEO', 'base': 'NEO',
'quote': 'USDT', 'quote': 'USDT',
'active': True, 'active': True,
'spot': True,
'type': 'spot',
'precision': { 'precision': {
'price': 8, 'price': 8,
'amount': 8, 'amount': 8,
@@ -857,6 +879,8 @@ def get_markets():
'base': 'TKN', 'base': 'TKN',
'quote': 'USDT', 'quote': 'USDT',
'active': True, 'active': True,
'spot': True,
'type': 'spot',
'precision': { 'precision': {
'price': 8, 'price': 8,
'amount': 8, 'amount': 8,
@@ -882,6 +906,8 @@ def get_markets():
'base': 'LTC', 'base': 'LTC',
'quote': 'USD', 'quote': 'USD',
'active': True, 'active': True,
'spot': True,
'type': 'spot',
'precision': { 'precision': {
'amount': 8, 'amount': 8,
'price': 8 'price': 8
@@ -904,6 +930,8 @@ def get_markets():
'base': 'LTC', 'base': 'LTC',
'quote': 'USDT', 'quote': 'USDT',
'active': True, 'active': True,
'spot': False,
'type': 'SomethingElse',
'precision': { 'precision': {
'amount': 8, 'amount': 8,
'price': 8 'price': 8
@@ -926,6 +954,8 @@ def get_markets():
'base': 'LTC', 'base': 'LTC',
'quote': 'ETH', 'quote': 'ETH',
'active': True, 'active': True,
'spot': True,
'type': 'spot',
'precision': { 'precision': {
'base': 8, 'base': 8,
'quote': 8, 'quote': 8,
@@ -976,6 +1006,8 @@ def shitcoinmarkets(markets_static):
'base': 'HOT', 'base': 'HOT',
'quote': 'BTC', 'quote': 'BTC',
'active': True, 'active': True,
'spot': True,
'type': 'spot',
'precision': { 'precision': {
'base': 8, 'base': 8,
'quote': 8, 'quote': 8,
@@ -1004,6 +1036,8 @@ def shitcoinmarkets(markets_static):
'base': 'FUEL', 'base': 'FUEL',
'quote': 'BTC', 'quote': 'BTC',
'active': True, 'active': True,
'spot': True,
'type': 'spot',
'precision': { 'precision': {
'base': 8, 'base': 8,
'quote': 8, 'quote': 8,