Skip to content

Commit

Permalink
Disable iTrade.gg market, they're website is under construction again…
Browse files Browse the repository at this point in the history
… and the APIs have changed
  • Loading branch information
rhyskoedijk committed Jun 21, 2024
1 parent 2251ee9 commit 8782d7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SCMM.Market.iTradegg.Client/iTradeggWebClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public class iTradeggWebClient : Shared.Web.Client.WebClientBase

public iTradeggWebClient(ILogger<iTradeggWebClient> logger) : base(logger) { }

// TODO: Implement new API, https://api.itrade.gg/inventory/bot/rust-data
[Obsolete("This no longer works, API has been removed")]
public async Task<IEnumerable<iTradeggItem>> GetInventoryAsync(string appId)
{
using (var client = BuildWebBrowserHttpClient(referrer: new Uri(WebBaseUri)))
Expand Down
1 change: 1 addition & 0 deletions SCMM.Steam.Data.Models/Enums/MarketType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public enum MarketType : byte
[BuyFrom(Url = "https://cs.trade/ref/SCMM#trader", AcceptedPayments = PriceFlags.Trade | PriceFlags.Cash | PriceFlags.Crypto)]
CSTRADE = 22,

[Obsolete("Website is under construction, APIs have changed")]
[Display(Name = "iTrade.gg")]
[Market(Constants.RustAppId, Color = "#EA473B", AffiliateUrl = "https://itrade.gg/r/scmm")]
[BuyFrom(Url = "https://itrade.gg/r/scmm?userInv={1}&botInv={1}", AcceptedPayments = PriceFlags.Trade)]
Expand Down

0 comments on commit 8782d7a

Please sign in to comment.