Skip to content

Commit

Permalink
Increases Amount of Trade History Fetched
Browse files Browse the repository at this point in the history
Some users make many trades in a short span of time (ie. <1d) without having their main "extension" computer on for a long duration.

Increase the amount of trade history we're willing to sift through for update pings.
  • Loading branch information
Step7750 committed May 7, 2024
1 parent 1df657e commit 5680a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/alarms/trade_history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async function getTradeHistoryFromAPI(): Promise<TradeHistoryStatus[]> {

// This only works if they have granted permission for https://api.steampowered.com
const resp = await fetch(
`https://api.steampowered.com/IEconService/GetTradeHistory/v1/?access_token=${accessToken}&max_trades=50`,
`https://api.steampowered.com/IEconService/GetTradeHistory/v1/?access_token=${accessToken}&max_trades=200`,
{
credentials: 'include',
}
Expand Down

0 comments on commit 5680a79

Please sign in to comment.