1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-11 16:32:57 +00:00

Client Configuration (#219)

Added support for IOptions injection, allowing options to be read from IConfiguration
Small refactor on client options internals
Updated HttpClient to be static field to be
This commit is contained in:
Jan Korf
2024-11-19 11:44:30 +01:00
committed by GitHub
parent 48797038be
commit 7d7bc35869
17 changed files with 312 additions and 237 deletions
+26
View File
@@ -0,0 +1,26 @@
{
"ExchangeApiOptions": {
"ApiCredentials": {
"Key": "APIKEY",
"Secret": "SECRET"
},
"Environment": {
"name": "live"
},
"Rest":{
"RequestTimeout": "00:00:20",
"CachingEnabled": true,
"OutputOriginalData": true,
"Proxy": {
"Host": "https://127.0.0.1",
"Port": 8080,
"Login": "User",
"Password": "Pass"
}
},
"Socket":{
"RequestTimeout": "00:00:05",
"SocketSubscriptionsCombineTarget": 15
}
}
}