API for warframe market.
Project description
pywmapi
PYthon Warframe Market API(pywmapi)
๐ฅ API for warframe market, implemented in Python.
"Thank you tinsuit, a fine trade. Transaction complete, haha!" -- Maroo
For now, the implemented function is listed below:
- auth
- โ sign in
- ๐ register
- ๐ restore password
- profile
- โ get current user's profile
- ๐ฒ manage current user profile
- โ get a user's profile
- ๐ฒ get all of a user's achievements
- ๐ฒ get all of a user's reviews
- โ set current user's online/offline status
- items
- โ list all tradable items
- โ get info about an item
- statistics
- โ get statistics of an item
- ๐ฒ get global market statistics
- orders
- โ get orders of a single item
- ๐ฒ get orders for the last 4 hours
- โ update a single order on the current profile
- โ delete a single order on the current profile
- โ add a new order for the current profile
- ๐ฒ get user's sale statistics(closed orders)
- โ get all of a user's orders
- liches
- โ list all lich weapons
- โ list all lich ephemeras
- โ list all lich quirks
- rivens
- โ list all riven items
- โ get a list of riven attributes
- misc
- ๐ฒ get a list of all known game locations
- ๐ฒ get a list of all known npcs
- ๐ฒ get a list of all known missions
- auctions
- โ create auction โ ๏ธ
- ๐ฒ get a list of riven auctions by given search params
- ๐ฒ get a list of lich auctions by given search params
- auction entry๏ธ
- ๐ฒ get info about auction by auction id
- ๐ฒ get auction bids by auction id
Symbols:
- โ : implemented
- ๐: unavailable due to some intractable problem
- ๐ฒ: not implemented yet
- โ ๏ธ: experimental and unstable
There are more APIs that are not recorded in the official documentation. Once all the above APIs are done, we would get on these undocumented APIs ASAP.
According to the official API documentation, there's a limit on the API that could only be called 3 times per sec. Otherwise, the request may be blocked by the cloudflare.
Installation
pip install pywmapi
The version of Python MUST >= 3.7 since dataclasses
is used.
Guidance
package of pywmapi is structured as:
.
โโโ auth
โโโ common
โโโ exceptions
โโโ experimental
โ โโโ auctions
โโโ items
โโโ lang
โโโ liches
โโโ orders
โโโ profile
โโโ rivens
โโโ statistics
โโโ utils.py
auth
: authentication such as signinexperimental
: experimental functionalitiesauctions
: auctions related
items
: item relatedliches
lich relatedorders
: orders manipulationprofile
: user profile manipulationrivens
: riven relatedstatistics
: statistics of items
๐ช More functionalities is coming!
๐๏ธ Better documentation is under construction!
The param url_name
of some functions is regarded as the unique name for each item. For instance, if I search for the item Chroma Prime Systems on warframe market, the url for this page become https://warframe.market/items/chroma_prime_systems. And the last part of this url string is exactly the url_name
for this item, i.e. chroma_prime_systems
!
Another way to get url_name
for an item is through the items.list_items()
function.
Examples
First, we import the package as:
import pywmapi as wm
To list all of the tradable items:
wm.items.list_items()
To get the info for any item with its url_name
:
wm.items.get_item("chroma_prime_systems")
To get the orders of a specific item:
wm.items.get_orders("chroma_prime_systems")
To create order:
sess = wm.auth.signin("your_account", "your_password")
# new selling order item of "Flame Gland" for 1000 platinum, quantity 1, rank 0 and invisible
new_item = wm.orders.OrderNewItem(
item_id="5be5f5a23ffcc7038857f119",
order_type=wm.common.OrderType.sell,
platinum=1000,
quantity=1,
rank=0,
visible=False,
)
new_order = wm.orders.add_order(sess, new_item)
To get the statistics of historical prices of any item:
wm.statistics.get_statistic("chroma_prime_systems")
Signin & get current orders:
sess = wm.auth.signin("your_account", "your_password")
sell_orders, buy_orders = wm.orders.get_current_orders(sess)
To get all rivens templates:
wm.rivens.list_items()
Some of these function may have various optional params, such as platform
, lang
, include
, etc.
More APIs and docs could be found in corresponding packages and docstrings.
Reference
Warframe market official API documentation
Changelog
See CHANGELOG.md.
Contributing
Check out CONTRIBUTE.md for more information.
Feel free to make any issue or PR! ๐
Or contact me in game!
Donating
Any sort of donation in game would be appreciated.
Contact me in game:
/w AyajiLin Hi! ${Your words here}.
๐คฃ Relics or 5 platinums would be enough.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pywmapi-1.2.0.tar.gz
.
File metadata
- Download URL: pywmapi-1.2.0.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 924fc2fa5979d5cfd174d228683f92709b36a85046438545eb8e610be0b154b8 |
|
MD5 | 6c8a4a819ec447053d948213939e84fd |
|
BLAKE2b-256 | 81037a7966067530878ffed5847d7f8758f96b8c52fbc4bc6fbb55d3c0ca13c2 |
File details
Details for the file pywmapi-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: pywmapi-1.2.0-py3-none-any.whl
- Upload date:
- Size: 23.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6eb2892e3513791df7147addfad8afe6bfdd954bac3913b16892b968eb450fb |
|
MD5 | 2199a6eb825499b1ab3edc9176b65d6d |
|
BLAKE2b-256 | 032131aa0147bf6ac307a8dc7867386939929bcf58837db4353146841b6ed849 |