China A-share market data mining, engineering & analysis tool written in go.
Migrated from carusyte/stock
- a web data retriever to fetch data from public sources
- a mapper to store in database (MySQL)
- methods and functions apply on offline data for regression
golang version >= 1.13.6
github.com
- agux/roprox for rotating proxy
- sirupsen/logrus for logging
- spf13/cobra for cli interfaces
golang.org
# have go-lang installed, (v1.13.6)
# have latest git installed (v2.24)
# this might take few minutes
cd %GOPATH%\src\github.com\agux\pachon
go get ...
# known issue https://github.com/grpc/grpc-go/issues/3312
cd %GOPATH%\src\google.golang.org\grpc
git revert 336cf8d
cd %GOPATH%\src\github.com\agux\pachon
go install
-
Before running the program, copy the
stock.sample.toml
config file template to$GOPATH/bin
, and rename tostock.toml
. -
Customize/Localize the 'stock.toml' file accordingly.
-
If you have your executable search path environment variable properly set, you should be able to run the following command directly. This command will list out all sub-commands and its usage.
pachon help
-
You might need agux/roprox to run in parallel in order to fetch publicly available proxy servers.
-
To start fetching A-share market data:
pachon get
there are still some config parse problem, instruction required
re-fetch via 'go get -u', or direclty remove correspoding package folder and run it again
go get -u golang.org/x/text