candles based alerts
This commit is contained in:
parent
bec3b7de5b
commit
999f675da9
11 changed files with 316 additions and 15 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue