Sam Germain
|
42e36f44f8
|
replaced "leverage" with "tiers"
|
2022-02-12 23:02:14 -06:00 |
|
Sam Germain
|
6b9915bc73
|
moved fill_leverage_brackets and get_max_leverage to base exchange class, wrote parse_leverage_tier and load_leverage_brackets
|
2022-02-12 23:02:14 -06:00 |
|
Sam Germain
|
a99cf2eeed
|
redid get_max_leverage
|
2022-02-12 23:02:07 -06:00 |
|
Sam Germain
|
720a86778e
|
okex.get_max_pair_stake_amount
|
2022-02-12 23:01:39 -06:00 |
|
Sam Germain
|
ff915b241c
|
test_okex test_get_maintenance_ratio_and_amt_okex
|
2022-02-12 23:01:39 -06:00 |
|
Sam Germain
|
a5aba4813d
|
moved get_maintenance_ratio_and_amt to base.exchange. Wrote get_leverage_tiers. Added mmr_key to exchange._ft_has
|
2022-02-12 23:01:30 -06:00 |
|
Sam Germain
|
19a282ddb4
|
fixed broken test_get_liquidation_price
|
2022-02-11 19:38:59 +01:00 |
|
Sam Germain
|
6ae85f9be1
|
fixed liq-buffer tests
|
2022-02-11 19:38:59 +01:00 |
|
Matthias
|
0c6d92a7a6
|
Merge branch 'develop' into feat/short
|
2022-02-11 17:02:04 +01:00 |
|
Sam Germain
|
52fed6e779
|
test_ccxt__get_contract_size
|
2022-02-10 06:59:43 -06:00 |
|
Matthias
|
1d10d2c87c
|
Okex -> okx
|
2022-02-08 19:45:39 +01:00 |
|
Matthias
|
412fe65344
|
Merge pull request #6316 from samgermain/max-amount
exchange.get_max_pair_stake_amount
|
2022-02-06 07:44:29 +01:00 |
|
Sam Germain
|
ce676a9dd7
|
wrote ccxt_compat.test_get_max_leverage_spot test_get_max_leverage_futures
|
2022-02-04 17:55:49 -06:00 |
|
Sam Germain
|
8b57827676
|
exchange.get_max_pair_stake_amount hard set leverage to 0
|
2022-02-04 14:26:15 -06:00 |
|
Sam Germain
|
c0a593280e
|
test_exchange.test_cancel_order_dry_run pass leverage to create_order
|
2022-02-04 04:54:16 -06:00 |
|
Sam Germain
|
dc6cb445fd
|
Merge branch 'feat/short' into max-amount
|
2022-02-04 04:42:38 -06:00 |
|
Matthias
|
6afad6c99f
|
Small change to todo comment
|
2022-02-04 07:20:27 +01:00 |
|
Sam Germain
|
a50f4d2c57
|
Exchange.createOrder added * as second param
|
2022-02-03 20:33:16 -06:00 |
|
Sam Germain
|
16c2d54482
|
updated margin_modes
|
2022-02-03 20:33:16 -06:00 |
|
Sam Germain
|
c5cfd971f5
|
get_max_pair_stake_amount_tests
|
2022-02-03 20:33:16 -06:00 |
|
Sam Germain
|
55d91f018f
|
exchange._get_stake_amount_limit (merged min_pair_stake_amount and get_max_tradeable amount)
|
2022-02-03 20:33:04 -06:00 |
|
Sam Germain
|
ff5fffefb4
|
exchange.get_max_amount_tradable looks at cost also
|
2022-02-03 20:33:03 -06:00 |
|
Sam Germain
|
64ad810445
|
Revert "moved get_max_leverage to get_min_pair_stake_amount"
This reverts commit 90e48d5b98bcfb1452aa818a3274745eac395712.
|
2022-02-03 20:33:03 -06:00 |
|
Sam Germain
|
73319a74d3
|
moved get_max_leverage to get_min_pair_stake_amount
|
2022-02-03 20:33:03 -06:00 |
|
Sam Germain
|
f3b42b0ef3
|
wrote exchange.get_max_amount_tradable
|
2022-02-03 20:33:03 -06:00 |
|
Sam Germain
|
f58b92bb86
|
exchange.create_order removed default for leverage
|
2022-02-03 17:48:08 -06:00 |
|
Sam Germain
|
09f0e7149f
|
test__fetch_and_calculate_funding_fees_datetime_called # TODO-lev: test for longs
|
2022-02-02 12:42:13 -06:00 |
|
Sam Germain
|
30519aa3be
|
Changed name Collateral -> MarginMode, collateral -> margin_mode, and _supported_trading_mode_margin_pairs -> _supported_trading_margin_pairs
|
2022-02-01 13:05:40 -06:00 |
|
Matthias
|
7dd50f78cf
|
Small finetuning improving a comment
|
2022-02-01 06:37:13 +01:00 |
|
Sam Germain
|
fc15e14707
|
Merge branch 'feat/short' into isolated-liq
|
2022-01-31 14:22:01 -06:00 |
|
Sam Germain
|
9de63412c1
|
exchange.get_liquidation_price arguments are not optional
|
2022-01-31 14:00:52 -06:00 |
|
Sam Germain
|
8b9abd0051
|
test_get_maintenance_ratio_and_amt_gateio removed commented test that returns None
|
2022-01-31 13:18:31 -06:00 |
|
Sam Germain
|
08e4a4a6dd
|
binance.get_max_leverage_fix
|
2022-01-31 12:21:12 -06:00 |
|
Sam Germain
|
43db4c34d1
|
added okex back to unsupported exchanges
|
2022-01-31 12:18:30 -06:00 |
|
Sam Germain
|
b8f4cebce7
|
exchange.liquidation_price methods combined, dry_run check on exchange for liquidation price
|
2022-01-31 12:18:25 -06:00 |
|
Sam Germain
|
143c37d36f
|
cleaned up liquidation price methods
|
2022-01-31 12:17:07 -06:00 |
|
Sam Germain
|
ede9012fcc
|
removed TODO-levs about okex liquidation price
|
2022-01-31 12:17:07 -06:00 |
|
Sam Germain
|
5cf54bee4d
|
removed excess decimals in test_binance
|
2022-01-31 12:16:43 -06:00 |
|
Sam Germain
|
0c13e387fe
|
moved liquidation_price method to exchange classes
|
2022-01-31 12:16:43 -06:00 |
|
Sam Germain
|
1f1ac8ce9d
|
test_get_liquidation_price/test_get_maintenance_ratio_and_amt_binance/fill_leverage_brackets/test_validate_trading_mode_and_collateral TODO comments
|
2022-01-31 12:16:43 -06:00 |
|
Sam Germain
|
c2f9201512
|
Added get_liquidation_price check
|
2022-01-31 12:16:43 -06:00 |
|
Sam Germain
|
bb2b2211d0
|
exchange.fill_leverage_brackets/get_maintenance_ratio_and_amt docstring and type specification
|
2022-01-31 12:16:43 -06:00 |
|
Sam Germain
|
0c8205ab3b
|
replace single quote docstrings with double quote docstrings
|
2022-01-31 12:16:43 -06:00 |
|
Sam Germain
|
387a9fbf36
|
test_execute_entry liquidation_price test test_get_maintenance_ratio_and_amt_gateio
|
2022-01-31 12:16:38 -06:00 |
|
Sam Germain
|
2d545a2def
|
fixed breaking tests for liquidation price
|
2022-01-31 12:15:54 -06:00 |
|
Sam Germain
|
1eee5373b9
|
gateio.get_maintenance_ratio_and_amt
|
2022-01-31 12:15:54 -06:00 |
|
Sam Germain
|
69a6223ca0
|
implemented binance.get_maintenance_ratio_and_amt
|
2022-01-31 12:15:54 -06:00 |
|
Sam Germain
|
ba5fc21d84
|
added isolated futures to supported modes for binance,gateio
|
2022-01-31 12:15:54 -06:00 |
|
Sam Germain
|
ba02605d77
|
Isolated liq branch passes all tests and has the general structure that it is supposed to, but is patchy, and doesnt get the correct maintenance amt and maintenance margin rate yet
|
2022-01-31 12:15:54 -06:00 |
|
Sam Germain
|
779b82b5b4
|
fixed test_get_min_pair_stake_amount by adding amount.min/max and cost.min/max to all markets
|
2022-01-31 03:02:17 -06:00 |
|