Add simple test for recursive loading

This commit is contained in:
Matthias
2022-04-08 16:04:54 +02:00
parent 1ea49ce864
commit 3427df0653
8 changed files with 94 additions and 10 deletions

View File

@@ -0,0 +1,12 @@
{
"stake_currency": "",
"dry_run": true,
"exchange": {
"name": "",
"key": "",
"secret": "",
"pair_whitelist": [],
"ccxt_async_config": {
}
}
}

21
tests/testdata/testconfigs/pricing.json vendored Normal file
View File

@@ -0,0 +1,21 @@
{
"entry_pricing": {
"price_side": "same",
"use_order_book": true,
"order_book_top": 1,
"price_last_balance": 0.0,
"check_depth_of_market": {
"enabled": false,
"bids_to_ask_delta": 1
}
},
"exit_pricing":{
"price_side": "same",
"use_order_book": true,
"order_book_top": 1,
"price_last_balance": 0.0
},
"files": [
"pricing2.json"
]
}

View File

@@ -0,0 +1,18 @@
{
"entry_pricing": {
"price_side": "same",
"use_order_book": true,
"order_book_top": 1,
"price_last_balance": 0.0,
"check_depth_of_market": {
"enabled": false,
"bids_to_ask_delta": 1
}
},
"exit_pricing":{
"price_side": "other",
"use_order_book": true,
"order_book_top": 1,
"price_last_balance": 0.0
}
}

View File

@@ -0,0 +1,6 @@
{
// This file fails as it's loading itself over and over
"files": [
"./recursive.json"
]
}

View File

@@ -0,0 +1,6 @@
{
"files": [
"base_config.json",
"pricing.json"
]
}