maintenanceMarginRatio -> maintenanceMarginRate

This commit is contained in:
Sam Germain
2022-02-16 09:04:43 -06:00
parent ef5dae2770
commit 124532a4b7
5 changed files with 1107 additions and 1107 deletions

View File

@@ -21,7 +21,7 @@ def test_get_maintenance_ratio_and_amt_okx(
'tier': 1,
'notionalFloor': 0,
'notionalCap': 2000,
'maintenanceMarginRatio': 0.01,
'maintenanceMarginRate': 0.01,
'maxLeverage': 75,
'info': {
'baseMaxLoan': '',
@@ -41,7 +41,7 @@ def test_get_maintenance_ratio_and_amt_okx(
'tier': 2,
'notionalFloor': 2001,
'notionalCap': 4000,
'maintenanceMarginRatio': 0.015,
'maintenanceMarginRate': 0.015,
'maxLeverage': 50,
'info': {
'baseMaxLoan': '',
@@ -61,7 +61,7 @@ def test_get_maintenance_ratio_and_amt_okx(
'tier': 3,
'notionalFloor': 4001,
'notionalCap': 8000,
'maintenanceMarginRatio': 0.02,
'maintenanceMarginRate': 0.02,
'maxLeverage': 20,
'info': {
'baseMaxLoan': '',
@@ -83,7 +83,7 @@ def test_get_maintenance_ratio_and_amt_okx(
'tier': 1,
'notionalFloor': 0,
'notionalCap': 500,
'maintenanceMarginRatio': 0.02,
'maintenanceMarginRate': 0.02,
'maxLeverage': 75,
'info': {
'baseMaxLoan': '',
@@ -103,7 +103,7 @@ def test_get_maintenance_ratio_and_amt_okx(
'tier': 2,
'notionalFloor': 501,
'notionalCap': 1000,
'maintenanceMarginRatio': 0.025,
'maintenanceMarginRate': 0.025,
'maxLeverage': 50,
'info': {
'baseMaxLoan': '',
@@ -123,7 +123,7 @@ def test_get_maintenance_ratio_and_amt_okx(
'tier': 3,
'notionalFloor': 1001,
'notionalCap': 2000,
'maintenanceMarginRatio': 0.03,
'maintenanceMarginRate': 0.03,
'maxLeverage': 20,
'info': {
'baseMaxLoan': '',
@@ -179,7 +179,7 @@ def test_load_leverage_tiers_okx(default_conf, mocker, markets):
'tier': 1,
'notionalFloor': 0,
'notionalCap': 500,
'maintenanceMarginRatio': 0.02,
'maintenanceMarginRate': 0.02,
'maxLeverage': 75,
'info': {
'baseMaxLoan': '',
@@ -199,7 +199,7 @@ def test_load_leverage_tiers_okx(default_conf, mocker, markets):
'tier': 2,
'notionalFloor': 501,
'notionalCap': 1000,
'maintenanceMarginRatio': 0.025,
'maintenanceMarginRate': 0.025,
'maxLeverage': 50,
'info': {
'baseMaxLoan': '',
@@ -219,7 +219,7 @@ def test_load_leverage_tiers_okx(default_conf, mocker, markets):
'tier': 3,
'notionalFloor': 1001,
'notionalCap': 2000,
'maintenanceMarginRatio': 0.03,
'maintenanceMarginRate': 0.03,
'maxLeverage': 20,
'info': {
'baseMaxLoan': '',
@@ -243,7 +243,7 @@ def test_load_leverage_tiers_okx(default_conf, mocker, markets):
'tier': 1,
'notionalFloor': 0,
'notionalCap': 2000,
'maintenanceMarginRatio': 0.01,
'maintenanceMarginRate': 0.01,
'maxLeverage': 75,
'info': {
'baseMaxLoan': '',
@@ -263,7 +263,7 @@ def test_load_leverage_tiers_okx(default_conf, mocker, markets):
'tier': 2,
'notionalFloor': 2001,
'notionalCap': 4000,
'maintenanceMarginRatio': 0.015,
'maintenanceMarginRate': 0.015,
'maxLeverage': 50,
'info': {
'baseMaxLoan': '',
@@ -283,7 +283,7 @@ def test_load_leverage_tiers_okx(default_conf, mocker, markets):
'tier': 3,
'notionalFloor': 4001,
'notionalCap': 8000,
'maintenanceMarginRatio': 0.02,
'maintenanceMarginRate': 0.02,
'maxLeverage': 20,
'info': {
'baseMaxLoan': '',