Files
gocryptotrader/backtester/config/strategyexamples/dca-api-candles-simultaneous-processing.strat
Scott 1461cba363 backtester: standalone application (#988)
* Ramshackle early leads to GRPC backtester

* Adds GRPC server, default config generation

* Partial support for GRPC backtester config

* Update to use Buf, merge fixes

* Full config for GRPC

* Adds new commands, causes big panic

* Fixes panics

* Setup for the future

* Docs update

* test

* grpc tests

* Fix merge issues. Lint and test

* minor fixes after rebase

* Docs, formatting and main fixes

* Change buf owner

* shazNits

* test-123

* rpc fixes

* string fixes

* Removes --singlerun flag and just relies on --singlerunstrategypath

* fixes test

* initial post merge compatability fixes

* this actually all seems to work? unexpected

* adds pluginpath to config

* rm unused func. add gitignore

* rm unused func. add gitignore

* lintle

* tITLE cASE lOG fIX,rm auth package, gitignore, tmpdir fix

* buf updates + gen. go mod tidy

* x2

* Update default port, update error text
2022-09-08 16:22:30 +10:00

98 lines
2.3 KiB
Plaintext

{
"nickname": "ExampleStrategyDCAAPICandlesSimultaneousProcessing",
"goal": "To demonstrate how simultaneous processing can work",
"strategy-settings": {
"name": "dollarcostaverage",
"use-simultaneous-signal-processing": true,
"disable-usd-tracking": false
},
"funding-settings": {
"use-exchange-level-funding": false
},
"currency-settings": [
{
"exchange-name": "ftx",
"asset": "spot",
"base": "BTC",
"quote": "USDT",
"spot-details": {
"initial-quote-funds": "1000000"
},
"buy-side": {
"minimum-size": "0.005",
"maximum-size": "2",
"maximum-total": "40000"
},
"sell-side": {
"minimum-size": "0.005",
"maximum-size": "2",
"maximum-total": "40000"
},
"min-slippage-percent": "0",
"max-slippage-percent": "0",
"maker-fee-override": "0.0002",
"taker-fee-override": "0.0007",
"maximum-holdings-ratio": "0",
"skip-candle-volume-fitting": false,
"use-exchange-order-limits": false,
"use-exchange-pnl-calculation": false
},
{
"exchange-name": "ftx",
"asset": "spot",
"base": "ETH",
"quote": "USDT",
"spot-details": {
"initial-quote-funds": "100000"
},
"buy-side": {
"minimum-size": "0.005",
"maximum-size": "2",
"maximum-total": "40000"
},
"sell-side": {
"minimum-size": "0.005",
"maximum-size": "2",
"maximum-total": "40000"
},
"min-slippage-percent": "0",
"max-slippage-percent": "0",
"maker-fee-override": "0.0002",
"taker-fee-override": "0.0007",
"maximum-holdings-ratio": "0",
"skip-candle-volume-fitting": false,
"use-exchange-order-limits": false,
"use-exchange-pnl-calculation": false
}
],
"data-settings": {
"interval": 86400000000000,
"data-type": "candle",
"api-data": {
"start-date": "2021-08-01T00:00:00+10:00",
"end-date": "2021-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",
"maximum-collateral-leverage-rate": "0"
},
"buy-side": {
"minimum-size": "0.005",
"maximum-size": "2",
"maximum-total": "40000"
},
"sell-side": {
"minimum-size": "0.005",
"maximum-size": "2",
"maximum-total": "40000"
}
},
"statistic-settings": {
"risk-free-rate": "0.03"
}
}