Skip to content

Commit

Permalink
Updated TestGetLatestCryptoPerpPricing
Browse files Browse the repository at this point in the history
  • Loading branch information
chathumi-k committed Jan 8, 2025
1 parent 3d8eec1 commit c4770f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marketdata/rest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1471,7 +1471,7 @@ func TestLatestCryptoPerpQuotes(t *testing.T) {

func TestGetLatestCryptoPerpPricing(t *testing.T) {
c := DefaultClient
c.do = mockResp(`{"futuresPricing": {"BTC-PERP": {"t": "2024-12-19T09:33:36.311Z", "ft": "2024-12-19T10:33:36.311Z", "oi": 90.7367, "ip": 50702.8, "mp": 50652.3553, "fr": 0.000565699}}}`)
c.do = mockResp(`{"pricing": {"BTC-PERP": {"t": "2024-12-19T09:33:36.311Z", "ft": "2024-12-19T10:33:36.311Z", "oi": 90.7367, "ip": 50702.8, "mp": 50652.3553, "fr": 0.000565699}}}`)
got, err := c.GetLatestCryptoPerpPricing("BTC-PERP", GetLatestCryptoPerpPricingRequest{})
require.NoError(t, err)
require.NotNil(t, got)
Expand Down

0 comments on commit c4770f2

Please sign in to comment.