Fixed timestamp/datetime issues for mark price, funding rate and _get_funding_fee_dates
This commit is contained in:
@@ -4722,39 +4722,39 @@ def test_update_funding_fees(mocker, default_conf, time_machine, fee):
|
||||
|
||||
funding_rates = {
|
||||
"LTC/BTC": {
|
||||
1630454400000: 0.00032583,
|
||||
1630483200000: 0.00024472,
|
||||
1630454400: 0.00032583,
|
||||
1630483200: 0.00024472,
|
||||
},
|
||||
"ETH/BTC": {
|
||||
1630454400000: 0.0001,
|
||||
1630483200000: 0.0001,
|
||||
1630454400: 0.0001,
|
||||
1630483200: 0.0001,
|
||||
},
|
||||
"ETC/BTC": {
|
||||
1630454400000: 0.00031077,
|
||||
1630483200000: 0.00022655,
|
||||
1630454400: 0.00031077,
|
||||
1630483200: 0.00022655,
|
||||
},
|
||||
"XRP/BTC": {
|
||||
1630454400000: 0.00049426,
|
||||
1630483200000: 0.00032715,
|
||||
1630454400: 0.00049426,
|
||||
1630483200: 0.00032715,
|
||||
}
|
||||
}
|
||||
|
||||
mark_prices = {
|
||||
"LTC/BTC": {
|
||||
1630454400000: 3.3,
|
||||
1630483200000: 3.2,
|
||||
1630454400: 3.3,
|
||||
1630483200: 3.2,
|
||||
},
|
||||
"ETH/BTC": {
|
||||
1630454400000: 2.4,
|
||||
1630483200000: 2.5,
|
||||
1630454400: 2.4,
|
||||
1630483200: 2.5,
|
||||
},
|
||||
"ETC/BTC": {
|
||||
1630454400000: 4.3,
|
||||
1630483200000: 4.1,
|
||||
1630454400: 4.3,
|
||||
1630483200: 4.1,
|
||||
},
|
||||
"XRP/BTC": {
|
||||
1630454400000: 1.2,
|
||||
1630483200000: 1.2,
|
||||
1630454400: 1.2,
|
||||
1630483200: 1.2,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user