init; project structure & bybit provider

This commit is contained in:
yash 2026-02-24 22:28:29 +03:00
commit ae096d4820
14 changed files with 482 additions and 0 deletions

View file

@ -0,0 +1,6 @@
package entities
type Pair struct {
BaseCurrency string // base currency of the pair. e.g. BTC.
QuoteCurrency string // quote currency of the pair. e.g. USDT.
}

View file

@ -0,0 +1,10 @@
package entities
import "github.com/shopspring/decimal"
type Price struct {
Ask decimal.Decimal // limit seller / market buyer. ask > bid.
Bid decimal.Decimal // limit buyer / market seller. bid < ask.
Spread decimal.Decimal // delta between ask and bid.
Pair Pair // trading pair
}