Skip to content

Commit

Permalink
Fixed syntax error in TestLatestCryptoPerpTrade
Browse files Browse the repository at this point in the history
  • Loading branch information
chathumi-k committed Dec 20, 2024
1 parent ed10301 commit a4b2467
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 @@ -1409,7 +1409,7 @@ func TestLatestCryptoPerpBar(t *testing.T) {

func TestLatestCryptoPerpTrade(t *testing.T) {
c := DefaultClient
c.do = mockResp(`{"trades": {"BTC-PERP": {"805227019,"p": 101761.4,"s": 0.0011,"t": "2024-12-19T09:33:36.311Z","tks": "B"}}}`)
c.do = mockResp(`{"trades": {"BTC-PERP": {"i": 1805227019,"p": 101761.4,"s": 0.0011,"t": "2024-12-19T09:33:36.311Z","tks": "B"}}}`)
got, err := c.GetLatestCryptoPerpTrade("BTC-PERP", GetLatestCryptoTradeRequest{})
require.NoError(t, err)
require.NotNil(t, got)
Expand Down

0 comments on commit a4b2467

Please sign in to comment.