Script to check for the most profitbale augmentation mods of a syndicate in the game Warframe and automatically sell them via WarframeMarket
While I made this project mainly to sell syndicate mods and find the most profitable to sell at a given moment, this project can be used to evaluate and sell most Warframe items. For a more general library for the WarframeMarket API, check out the library from AyajiLin.
The example in main.py should give a good overview on how to use this project. To break it down:
Line 12 in f5c8966
mods
is just a list of mod names (as strings), so one can easily exchange this for other mods/items if needed.
Lines 13 to 14 in f5c8966
MarketItems
which allows to keep track of the WaframeMarket URL and ID of these mods/items.
Line 18 in d39f907
SalesStrategy
SellMostProfitable
to determine the current cheapest price of all given market items and determine the most profitable (i.e. most expensive) ones. difference_to_highest = 0
is the most greedy version that only sells the most expensive items. A larger value for difference_to_highest
also sells items that are that much cheaper. sell_below_current_cheapest
determines whether the item should be sold at the currently cheapest price or for one platinum less.
Line 21 in f5c8966
SalesAgent
ManualSales
. This agent just prints the identified items to sell together with their price to the console. This line is not needed if the AutomaticSales
agent is used.
Lines 24 to 32 in f5c8966
WFM_MAIL=[email protected]
WFM_PASSWORD=password123
Assuming a successfull login
Lines 34 to 35 in f5c8966
AutomaticSales
agent and lists the items on WarframeMarket
Line 37 in f5c8966
market_items
but was not listed by the agent in the previous step is deleted. This is especially usefull when selling syndicate mods to cleanup previous listings that are not the most profitable ones anymore.