blockchain/internal/domain/repository/data_source.go

17 lines
463 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package repository
import (
"blockchain/internal/domain/entity"
"context"
)
type DataSourceRepository interface {
GetSymbols(ctx context.Context) ([]*entity.Symbol, error)
KlineDownloader
}
type KlineDownloader interface {
// FetchHistoryKline 抓歷史K線資料startMillis=0 表示從最早endMillis=0 表示到最新
FetchHistoryKline(ctx context.Context, symbol string, interval string, startMillis, endMillis int64) ([]*entity.Kline, error)
}