updated conftest to have limit keys and contractSize on every market

This commit is contained in:
Sam Germain 2022-01-31 03:01:44 -06:00
parent 29c5dfd4ca
commit 5af3e1600d
1 changed files with 155 additions and 15 deletions

View File

@ -583,12 +583,16 @@ def get_markets():
'cost': 8, 'cost': 8,
}, },
'lot': 0.00000001, 'lot': 0.00000001,
'contractSize': None,
'limits': { 'limits': {
'amount': { 'amount': {
'min': 0.01, 'min': 0.01,
'max': 1000, 'max': 1000,
}, },
'price': 500000, 'price': {
'min': None,
'max': 500000,
},
'cost': { 'cost': {
'min': 0.0001, 'min': 0.0001,
'max': 500000, 'max': 500000,
@ -614,12 +618,16 @@ def get_markets():
'cost': 8, 'cost': 8,
}, },
'lot': 0.00000001, 'lot': 0.00000001,
'contractSize': None,
'limits': { 'limits': {
'amount': { 'amount': {
'min': 0.01, 'min': 0.01,
'max': 1000, 'max': 1000,
}, },
'price': 500000, 'price': {
'min': None,
'max': 500000,
},
'cost': { 'cost': {
'min': 0.0001, 'min': 0.0001,
'max': 500000, 'max': 500000,
@ -644,12 +652,16 @@ def get_markets():
'cost': 8, 'cost': 8,
}, },
'lot': 0.00000001, 'lot': 0.00000001,
'contractSize': None,
'limits': { 'limits': {
'amount': { 'amount': {
'min': 0.01, 'min': 0.01,
'max': 1000, 'max': 1000,
}, },
'price': 500000, 'price': {
'min': None,
'max': 500000,
},
'cost': { 'cost': {
'min': 0.0001, 'min': 0.0001,
'max': 500000, 'max': 500000,
@ -674,12 +686,16 @@ def get_markets():
'cost': 8, 'cost': 8,
}, },
'lot': 0.00000001, 'lot': 0.00000001,
'contractSize': None,
'limits': { 'limits': {
'amount': { 'amount': {
'min': 0.01, 'min': 0.01,
'max': 1000, 'max': 1000,
}, },
'price': 500000, 'price': {
'min': None,
'max': 500000,
},
'cost': { 'cost': {
'min': 0.0001, 'min': 0.0001,
'max': 500000, 'max': 500000,
@ -705,16 +721,24 @@ def get_markets():
'cost': 8, 'cost': 8,
}, },
'lot': 0.00000001, 'lot': 0.00000001,
'contractSize': None,
'limits': { 'limits': {
'amount': { 'amount': {
'min': 0.01, 'min': 0.01,
'max': 1000, 'max': 1000,
}, },
'price': 500000, 'price': {
'min': None,
'max': 500000,
},
'cost': { 'cost': {
'min': 0.0001, 'min': 0.0001,
'max': 500000, 'max': 500000,
}, },
'leverage': {
'min': None,
'max': None,
},
}, },
'info': {}, 'info': {},
}, },
@ -732,16 +756,24 @@ def get_markets():
'cost': 8, 'cost': 8,
}, },
'lot': 0.00000001, 'lot': 0.00000001,
'contractSize': None,
'limits': { 'limits': {
'amount': { 'amount': {
'min': 0.01, 'min': 0.01,
'max': 1000, 'max': 1000,
}, },
'price': 500000, 'price': {
'min': None,
'max': 500000,
},
'cost': { 'cost': {
'min': 0.0001, 'min': 0.0001,
'max': 500000, 'max': 500000,
}, },
'leverage': {
'min': None,
'max': None,
},
}, },
'info': {}, 'info': {},
}, },
@ -753,6 +785,7 @@ def get_markets():
'active': False, 'active': False,
'spot': True, 'spot': True,
'type': 'spot', 'type': 'spot',
'contractSize': None,
'precision': { 'precision': {
'base': 8, 'base': 8,
'quote': 8, 'quote': 8,
@ -771,7 +804,11 @@ def get_markets():
'cost': { 'cost': {
'min': 0.0001, 'min': 0.0001,
'max': None 'max': None
} },
'leverage': {
'min': None,
'max': None,
},
}, },
'info': {}, 'info': {},
}, },
@ -785,6 +822,7 @@ def get_markets():
'swap': True, 'swap': True,
'margin': True, 'margin': True,
'type': 'spot', 'type': 'spot',
'contractSize': None,
'precision': { 'precision': {
'amount': 8, 'amount': 8,
'price': 8 'price': 8
@ -797,7 +835,15 @@ def get_markets():
'price': { 'price': {
'min': 1e-08, 'min': 1e-08,
'max': None 'max': None
} },
'leverage': {
'min': None,
'max': None,
},
'cost': {
'min': None,
'max': None,
},
}, },
'active': True, 'active': True,
'info': {}, 'info': {},
@ -813,6 +859,7 @@ def get_markets():
'swap': True, 'swap': True,
'margin': True, 'margin': True,
'type': 'spot', 'type': 'spot',
'contractSize': None,
'precision': { 'precision': {
'amount': 8, 'amount': 8,
'price': 8 'price': 8
@ -825,7 +872,15 @@ def get_markets():
'price': { 'price': {
'min': 1e-08, 'min': 1e-08,
'max': None 'max': None
} },
'leverage': {
'min': None,
'max': None,
},
'cost': {
'min': None,
'max': None,
},
}, },
'info': {}, 'info': {},
}, },
@ -843,12 +898,16 @@ def get_markets():
'cost': 8, 'cost': 8,
}, },
'lot': 0.00000001, 'lot': 0.00000001,
'contractSize': None,
'limits': { 'limits': {
'amount': { 'amount': {
'min': 0.01, 'min': 0.01,
'max': 1000, 'max': 1000,
}, },
'price': 500000, 'price': {
'min': None,
'max': 500000,
},
'cost': { 'cost': {
'min': 0.0001, 'min': 0.0001,
'max': 500000, 'max': 500000,
@ -870,12 +929,16 @@ def get_markets():
'cost': 8, 'cost': 8,
}, },
'lot': 0.00000001, 'lot': 0.00000001,
'contractSize': None,
'limits': { 'limits': {
'amount': { 'amount': {
'min': 0.01, 'min': 0.01,
'max': 1000, 'max': 1000,
}, },
'price': 500000, 'price': {
'min': None,
'max': 500000,
},
'cost': { 'cost': {
'min': 0.0001, 'min': 0.0001,
'max': 500000, 'max': 500000,
@ -891,6 +954,7 @@ def get_markets():
'active': True, 'active': True,
'spot': True, 'spot': True,
'type': 'spot', 'type': 'spot',
'contractSize': None,
'precision': { 'precision': {
'price': 8, 'price': 8,
'amount': 8, 'amount': 8,
@ -902,11 +966,18 @@ def get_markets():
'min': 0.01, 'min': 0.01,
'max': 1000, 'max': 1000,
}, },
'price': 500000, 'price': {
'min': None,
'max': 500000
},
'cost': { 'cost': {
'min': 0.0001, 'min': 0.0001,
'max': 500000, 'max': 500000,
}, },
'leverage': {
'min': None,
'max': None,
},
}, },
'info': {}, 'info': {},
}, },
@ -931,7 +1002,15 @@ def get_markets():
'price': { 'price': {
'min': 1e-08, 'min': 1e-08,
'max': None 'max': None
} },
'leverage': {
'min': None,
'max': None,
},
'cost': {
'min': None,
'max': None,
},
}, },
'info': {}, 'info': {},
}, },
@ -943,12 +1022,16 @@ def get_markets():
'active': True, 'active': True,
'spot': False, 'spot': False,
'type': 'swap', 'type': 'swap',
'contractSize': '0.01', 'contractSize': 0.01,
'precision': { 'precision': {
'amount': 8, 'amount': 8,
'price': 8 'price': 8
}, },
'limits': { 'limits': {
'leverage': {
'min': None,
'max': None,
},
'amount': { 'amount': {
'min': 0.06646786, 'min': 0.06646786,
'max': None 'max': None
@ -956,7 +1039,11 @@ def get_markets():
'price': { 'price': {
'min': 1e-08, 'min': 1e-08,
'max': None 'max': None
} },
'cost': {
'min': None,
'max': None,
},
}, },
'info': {}, 'info': {},
}, },
@ -968,6 +1055,7 @@ def get_markets():
'active': True, 'active': True,
'spot': True, 'spot': True,
'type': 'spot', 'type': 'spot',
'contractSize': None,
'precision': { 'precision': {
'base': 8, 'base': 8,
'quote': 8, 'quote': 8,
@ -975,6 +1063,10 @@ def get_markets():
'price': 5 'price': 5
}, },
'limits': { 'limits': {
'leverage': {
'min': None,
'max': None,
},
'amount': { 'amount': {
'min': 0.001, 'min': 0.001,
'max': 10000000.0 'max': 10000000.0
@ -1138,6 +1230,22 @@ def shitcoinmarkets(markets_static):
"price": 4 "price": 4
}, },
"limits": { "limits": {
'leverage': {
'min': None,
'max': None,
},
'amount': {
'min': None,
'max': None,
},
'price': {
'min': None,
'max': None,
},
'cost': {
'min': None,
'max': None,
},
}, },
"id": "NANOUSDT", "id": "NANOUSDT",
"symbol": "NANO/USDT", "symbol": "NANO/USDT",
@ -1163,6 +1271,22 @@ def shitcoinmarkets(markets_static):
"price": 4 "price": 4
}, },
"limits": { "limits": {
'leverage': {
'min': None,
'max': None,
},
'amount': {
'min': None,
'max': None,
},
'price': {
'min': None,
'max': None,
},
'cost': {
'min': None,
'max': None,
},
}, },
"id": "ADAHALFUSDT", "id": "ADAHALFUSDT",
"symbol": "ADAHALF/USDT", "symbol": "ADAHALF/USDT",
@ -1188,6 +1312,22 @@ def shitcoinmarkets(markets_static):
"price": 4 "price": 4
}, },
"limits": { "limits": {
'leverage': {
'min': None,
'max': None,
},
'amount': {
'min': None,
'max': None,
},
'price': {
'min': None,
'max': None,
},
'cost': {
'min': None,
'max': None,
},
}, },
"id": "ADADOUBLEUSDT", "id": "ADADOUBLEUSDT",
"symbol": "ADADOUBLE/USDT", "symbol": "ADADOUBLE/USDT",