init; project structure & bybit provider
This commit is contained in:
commit
ae096d4820
14 changed files with 482 additions and 0 deletions
12
internal/provider/provider.go
Normal file
12
internal/provider/provider.go
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package provider
|
||||
|
||||
import (
|
||||
"context"
|
||||
"crypto_alert_bot/internal/entities"
|
||||
)
|
||||
|
||||
type Provider interface {
|
||||
// Price returns the current price of the pair (base currency / quote currency).
|
||||
// e.g. BTC/USDT.
|
||||
Price(ctx context.Context, pair entities.Pair) (*entities.Price, error)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue