mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +00:00
add user data stream sync config
This commit is contained in:
parent
44efbce8eb
commit
30a9a5849f
|
@ -20,7 +20,7 @@ sync:
|
|||
# userDataStream is used to sync the trading data in real-time
|
||||
# it uses the websocket connection to insert the trades
|
||||
userDataStream:
|
||||
trade: true
|
||||
trades: true
|
||||
filledOrders: true
|
||||
|
||||
# since is the start date of your trading data
|
||||
|
|
|
@ -167,6 +167,12 @@ type SyncConfig struct {
|
|||
|
||||
// Since is the date where you want to start syncing data
|
||||
Since *types.LooseFormatTime `json:"since,omitempty"`
|
||||
|
||||
// UserDataStream is for real-time sync with websocket user data stream
|
||||
UserDataStream struct {
|
||||
Trades bool `json:"trades,omitempty" yaml:"trades,omitempty"`
|
||||
FilledOrders bool `json:"filledOrders,omitempty" yaml:"filledOrders,omitempty"`
|
||||
} `json:"userDataStream,omitempty" yaml:"userDataStream,omitempty"`
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
|
|
Loading…
Reference in New Issue
Block a user