mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
add reward service todo
This commit is contained in:
parent
38b9baf340
commit
afb8105694
|
@ -15,6 +15,10 @@ import (
|
|||
"github.com/c9s/bbgo/pkg/types"
|
||||
)
|
||||
|
||||
// RewardService collects the reward records from the exchange,
|
||||
// currently it's only available for MAX exchange.
|
||||
// TODO: add summary query for calculating the reward amounts
|
||||
// CREATE VIEW reward_summary_by_years AS SELECT YEAR(created_at) as year, reward_type, currency, SUM(quantity) FROM rewards WHERE reward_type != 'airdrop' GROUP BY YEAR(created_at), reward_type, currency ORDER BY year DESC;
|
||||
type RewardService struct {
|
||||
DB *sqlx.DB
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user