Skip to content

Commit

Permalink
missing fx candles
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfatman committed Nov 4, 2024
1 parent f1493d5 commit 44f4884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polygon/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (c *Client) GetLatestCandles(symbol string) []*data.Candle {
to := time.Now().Format(time.DateOnly)
from := time.Now().Add(time.Hour * -24 * 7).Format(time.DateOnly)
url := fmt.Sprintf(
"https://%s/v2/aggs/ticker/C:%s/range/1/minute/%s/%s?adjusted=true&sort=asc&apiKey=%s",
"https://%s/v2/aggs/ticker/C:%s/range/1/minute/%s/%s?adjusted=true&sort=asc&apiKey=%s&limit=50000",
c.host, symbol, from, to, c.apiKey,
)
resp, err := client.R().Get(url)
Expand Down

0 comments on commit 44f4884

Please sign in to comment.