Documentation ¶
Overview ¶
* Copyright 2021 The Cerebro Authors * * Licensed under the GNU General Public License v3.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * <https:fsf.org/> * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright 2021 The Cerebro Authors * * Licensed under the GNU General Public License v3.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * <https:fsf.org/> * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
- type Cerebro
- type Option
- func WithAnalyzer(analyzer analysis.Analyzer) Option
- func WithLogLevel(lvl log.Level) Option
- func WithMarket(s market.Market) Option
- func WithObserver(o observer.Observer) Option
- func WithPreload(b bool) Option
- func WithStartTime(ti string) Option
- func WithStrategy(st ...strategy.Strategy) Option
- func WithStrategyTimeout(du time.Duration) Option
- func WithTargetItem(codes ...*item.Item) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cerebro ¶
type Cerebro struct {
// contains filtered or unexported fields
}
Cerebro head of trading system make all dependency manage
func NewCerebro ¶
NewCerebro generate new cerebro with cerebro option
type Option ¶
type Option func(*Cerebro)
func WithAnalyzer ¶ added in v0.0.5
func WithLogLevel ¶
func WithMarket ¶
func WithObserver ¶
func WithPreload ¶
func WithStartTime ¶ added in v0.0.5
func WithStrategy ¶
func WithStrategyTimeout ¶
func WithTargetItem ¶
Directories ¶
Path | Synopsis |
---|---|
* Copyright 2021 The Cerebro Authors * * Licensed under the GNU General Public License v3.0 (the "License"); * you may not use this file except in compliance with the License.
|
* Copyright 2021 The Cerebro Authors * * Licensed under the GNU General Public License v3.0 (the "License"); * you may not use this file except in compliance with the License. |
* Copyright 2023 The Cerebro Authors * * Licensed under the GNU General Public License v3.0 (the "License"); * you may not use this file except in compliance with the License.
|
* Copyright 2023 The Cerebro Authors * * Licensed under the GNU General Public License v3.0 (the "License"); * you may not use this file except in compliance with the License. |
mock
Package mock_event is a generated GoMock package.
|
Package mock_event is a generated GoMock package. |
* Copyright 2021 The Cerebro Authors * * Licensed under the GNU General Public License v3.0 (the "License"); * you may not use this file except in compliance with the License.
|
* Copyright 2021 The Cerebro Authors * * Licensed under the GNU General Public License v3.0 (the "License"); * you may not use this file except in compliance with the License. |
internal
|
|
pkg
* Copyright 2021 The Cerebro Authors * * Licensed under the GNU General Public License v3.0 (the "License"); * you may not use this file except in compliance with the License.
|
* Copyright 2021 The Cerebro Authors * * Licensed under the GNU General Public License v3.0 (the "License"); * you may not use this file except in compliance with the License. |
* Copyright 2021 The Cerebro Authors * * Licensed under the GNU General Public License v3.0 (the "License"); * you may not use this file except in compliance with the License.
|
* Copyright 2021 The Cerebro Authors * * Licensed under the GNU General Public License v3.0 (the "License"); * you may not use this file except in compliance with the License. |
* Copyright 2021 The Cerebro Authors * * Licensed under the GNU General Public License v3.0 (the "License"); * you may not use this file except in compliance with the License.
|
* Copyright 2021 The Cerebro Authors * * Licensed under the GNU General Public License v3.0 (the "License"); * you may not use this file except in compliance with the License. |
* Copyright 2021 The Cerebro Authors * * Licensed under the GNU General Public License v3.0 (the "License"); * you may not use this file except in compliance with the License.
|
* Copyright 2021 The Cerebro Authors * * Licensed under the GNU General Public License v3.0 (the "License"); * you may not use this file except in compliance with the License. |
* Copyright 2021 The Cerebro Authors * * Licensed under the GNU General Public License v3.0 (the "License"); * you may not use this file except in compliance with the License.
|
* Copyright 2021 The Cerebro Authors * * Licensed under the GNU General Public License v3.0 (the "License"); * you may not use this file except in compliance with the License. |
mock
Package mock_strategy is a generated GoMock package.
|
Package mock_strategy is a generated GoMock package. |