candles based alerts

This commit is contained in:
yash 2026-02-26 16:02:11 +03:00
parent bec3b7de5b
commit 999f675da9
11 changed files with 316 additions and 15 deletions

View file

@ -71,11 +71,16 @@ func (b *Bybit) getRequest(ctx context.Context, endPoint string, params any) ([]
}
query := make(url.Values)
for k, v := range q {
if v == nil {
continue
}
query.Add(k, fmt.Sprint(v))
}
queryString = query.Encode()
}
fmt.Println("req:", b.cfg.BaseURL+endPoint+"?"+queryString)
// make request
request, err := http.NewRequest("GET", b.cfg.BaseURL+endPoint+"?"+queryString, nil)
if err != nil {