Skip to content

Commit

Permalink
Merge pull request #291 from InjectiveLabs/fix/fix_stream_prices_exam…
Browse files Browse the repository at this point in the history
…ple_script

fix/fix_stream_prices_example_script
  • Loading branch information
aarmoa authored Feb 17, 2025
2 parents 99c9e91 + 9935c4a commit 4d282a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/exchange/oracle/1_StreamPrices/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"
"os"
"strings"

rpchttp "github.com/cometbft/cometbft/rpc/client/http"

Expand Down Expand Up @@ -74,7 +75,8 @@ func main() {

baseSymbol := market.OracleBase
quoteSymbol := market.OracleQuote
oracleType := market.OracleType
oracleType := strings.ToLower(market.OracleType)

stream, err := exchangeClient.StreamPrices(ctx, baseSymbol, quoteSymbol, oracleType)
if err != nil {
panic(err)
Expand Down

0 comments on commit 4d282a9

Please sign in to comment.