Skip to content

Commit

Permalink
Add limit to test (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
noramehesz authored Jul 2, 2024
1 parent c8a78ed commit 52a01fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/rest_v2.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,10 @@ describe("crypto API", () => {
});

it("get historical quotes", async () => {
const resp = await alpaca.getCryptoQuotes(["BTC/USD"], { start: "2024-06-25" });
const resp = await alpaca.getCryptoQuotes(["BTC/USD"], {
start: "2024-06-25",
limit: 1,
});
expect(resp.size).equal(1);

const quote = resp.get("BTC/USD");
Expand Down

0 comments on commit 52a01fa

Please sign in to comment.