mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-15 15:09:55 +00:00
* Exchanges: Add in exchange defined tolerance settings to conform to min max amounts/price/notional etc (Initial) * Add to tests fix linter * Binance: Implement CMF and usdtMarginFutures fetching of currency information, addr nits * binance: Add in test for tolerance set up * exchanges: add in more tolerance settings and add tests * nits: addr * fix linter issue * RPCServer: Use ordermanager instead of going direct to exchange * Nits: Addr * nits: glorious addr phase one * nits: glorious nits phase 2 * exchange: move tolerance -> limits in order package add wrapper function, split binance functions to asset files * nits: Addr thrasher + also include locking of limits struct when we update via syncer later on * nits: mdc addr * nits: glorious nits * limits: unexport mutex * limit: revert maths optim. and fix spelling * limit: Add decimal package * limit: don't check price on market order * Orders: Add order execution checks on fake orders so as to always conform to tight specifications even in simulation * binance: handle case where spot is not enabled but margin is * backtester: add in amount conforming to back tested events to simulate realistic orders * rm ln * order limit: return amount when limit is nil and conformToAmount is requested * nits: glorious nits + friends * backtester/orders: fix tests * nits: glorious nits * nits: glorious nits * RMLINE * nits: more glorious nits! * nits: pooosh * binance: fix margin logic * nits: Add warning, settings log and report item for exchange order execution limits * backtester: add specific warnings in report output * backtest: Adjust warnings
97 lines
2.2 KiB
Plaintext
97 lines
2.2 KiB
Plaintext
{
|
|
"nickname": "TestGenerateConfigForDCAAPICandlesSimultaneousProcessing",
|
|
"goal": "To demonstrate how simultaneous processing can work",
|
|
"strategy-settings": {
|
|
"name": "dollarcostaverage",
|
|
"use-simultaneous-signal-processing": true,
|
|
"custom-settings": null
|
|
},
|
|
"currency-settings": [
|
|
{
|
|
"exchange-name": "binance",
|
|
"asset": "spot",
|
|
"base": "BTC",
|
|
"quote": "USDT",
|
|
"initial-funds": 1000000,
|
|
"leverage": {
|
|
"can-use-leverage": false,
|
|
"maximum-orders-with-leverage-ratio": 0,
|
|
"maximum-leverage-rate": 0
|
|
},
|
|
"buy-side": {
|
|
"minimum-size": 0,
|
|
"maximum-size": 0,
|
|
"maximum-total": 1000
|
|
},
|
|
"sell-side": {
|
|
"minimum-size": 0,
|
|
"maximum-size": 0,
|
|
"maximum-total": 1000
|
|
},
|
|
"min-slippage-percent": 0,
|
|
"max-slippage-percent": 0,
|
|
"maker-fee-override": 0.001,
|
|
"taker-fee-override": 0.002,
|
|
"maximum-holdings-ratio": 0,
|
|
"use-exchange-order-limits": false
|
|
},
|
|
{
|
|
"exchange-name": "binance",
|
|
"asset": "spot",
|
|
"base": "ETH",
|
|
"quote": "USDT",
|
|
"initial-funds": 100000,
|
|
"leverage": {
|
|
"can-use-leverage": false,
|
|
"maximum-orders-with-leverage-ratio": 0,
|
|
"maximum-leverage-rate": 0
|
|
},
|
|
"buy-side": {
|
|
"minimum-size": 0.1,
|
|
"maximum-size": 1,
|
|
"maximum-total": 10000
|
|
},
|
|
"sell-side": {
|
|
"minimum-size": 0.1,
|
|
"maximum-size": 1,
|
|
"maximum-total": 10000
|
|
},
|
|
"min-slippage-percent": 0,
|
|
"max-slippage-percent": 0,
|
|
"maker-fee-override": 0.001,
|
|
"taker-fee-override": 0.002,
|
|
"maximum-holdings-ratio": 0,
|
|
"use-exchange-order-limits": false
|
|
}
|
|
],
|
|
"data-settings": {
|
|
"interval": 86400000000000,
|
|
"data-type": "candle",
|
|
"api-data": {
|
|
"start-date": "2020-11-01T00:00:00+11:00",
|
|
"end-date": "2020-12-01T00:00:00+11:00",
|
|
"inclusive-end-date": false
|
|
}
|
|
},
|
|
"portfolio-settings": {
|
|
"leverage": {
|
|
"can-use-leverage": false,
|
|
"maximum-orders-with-leverage-ratio": 0,
|
|
"maximum-leverage-rate": 0
|
|
},
|
|
"buy-side": {
|
|
"minimum-size": 0.1,
|
|
"maximum-size": 1,
|
|
"maximum-total": 10000
|
|
},
|
|
"sell-side": {
|
|
"minimum-size": 0.1,
|
|
"maximum-size": 1,
|
|
"maximum-total": 10000
|
|
}
|
|
},
|
|
"statistic-settings": {
|
|
"risk-free-rate": 0.03
|
|
},
|
|
"gocryptotrader-config-path": ""
|
|
} |