Skip to content

Commit

Permalink
remove BIRDEYE key from code
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Nov 21, 2024
1 parent 263534c commit 8382109
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions price/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"io/ioutil"
"net/http"
"os"
"time"

"go.uber.org/zap"
Expand Down Expand Up @@ -83,9 +84,9 @@ func fetch(fromTime time.Time, toTime time.Time, period string, logger *zap.Logg
if err != nil {
return nil, fmt.Errorf("creating request: %w", err)
}
k := os.Getenv("BIRDEYE_API_KEY")
req.Header.Add("X-Api-Key", k)

//todo: before making the we need to set this to a env var
req.Header.Add("X-Api-Key", "c28c10a82a614930af83a48a3b47189d")
resp, err := client.Do(req)
if err != nil {
return nil, fmt.Errorf("sending request: %w", err)
Expand Down

0 comments on commit 8382109

Please sign in to comment.