Skip to content

Commit

Permalink
It is now possible to request more than 10,000 trades using get_trade…
Browse files Browse the repository at this point in the history
…s_async [see Bug alpacahq#790]
  • Loading branch information
mj-z-ali committed Oct 14, 2024
1 parent 9f75328 commit f4bdc72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alpaca_trade_api/rest_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
EntityList, TradeV2, QuoteV2
import pandas as pd
from alpaca_trade_api.common import URL, get_credentials, get_data_url

from alpaca_trade_api.rest import DATA_V2_MAX_LIMIT

class AsyncRest:
def __init__(self,
Expand Down Expand Up @@ -80,7 +80,7 @@ async def get_trades_async(self, symbol, start, end, limit=1000):
payload = {
"start": start,
"end": end,
"limit": limit,
"limit": min(DATA_V2_MAX_LIMIT, limit),
}
df = await self._iterate_requests(symbol, payload, limit, _type,
TradesV2)
Expand Down

0 comments on commit f4bdc72

Please sign in to comment.