Trade XML feed |
Post Reply |
Author | |
GM Stormcrow
Moderator Group GM Joined: 23 Feb 2010 Location: Illyria Status: Offline Points: 3926 |
Post Options
Thanks(0)
Posted: 06 May 2021 at 17:30 |
TRADE XML Here's an example of a trade XML feed, based on real data. I bought the first 1 wood order in the nearest hub to me and turned the underlying data into a parse-able format.
The whole thing should be fairly self-explanatory, however: trade_order_id is the unique reference for this purchase or sale of a specific quantity from a buy or sell order trade_offer_id is the unique reference for the buy or sell order itself location_type_id is the general location of the order being accepted, and will be either 1 = Town 2 = Hub order_type_id Values that could be returned are: 2 = Town Sell Order 5 = Town Buy Order 6 = Collecting goods from a trade hub sell order 7 = Delivering goods to a trade hub buy order Comments welcome, additional information you want etc, please do let me know. Thanks in advance, SC Edited by GM Stormcrow - 06 May 2021 at 18:17 |
|
Jejune
Postmaster General Joined: 10 Feb 2013 Status: Offline Points: 1035 |
Post Options
Thanks(0)
|
This is fantastic, GM Stormcrow. Thank you! The individual XML files that accompany combat reports have proven to be incredibly useful and reliable for a number of inititives, and if we can have similar files for other actions that take place and are communicated via IGM, it will enhance gameplay.
One question: will all trade-related IGMs include an XML file? For example, when caravans are intercepted by a blockade, harvesters destroyed, etc.?
|
|
GM Stormcrow
Moderator Group GM Joined: 23 Feb 2010 Location: Illyria Status: Offline Points: 3926 |
Post Options
Thanks(0)
|
Hi Jejune, Yes; though I'll be doing the action xmls one at a time. Once people have had a look at this proposed format (above) and it's generally agreed to work for what people want, then I'll roll it out to live, check it's working, and start adding variants to other trade-related messages. Cheers, SC
Edited by GM Stormcrow - 07 May 2021 at 14:22 |
|
GM Stormcrow
Moderator Group GM Joined: 23 Feb 2010 Location: Illyria Status: Offline Points: 3926 |
Post Options
Thanks(0)
|
If no other comments on the trade XML proposal, I'll implement it as suggested.
Speak now, or forever hold your etc! Best, SC
Edited by GM Stormcrow - 12 May 2021 at 18:58 |
|
Tensmoor
Postmaster General Joined: 07 Apr 2015 Location: Scotland Status: Offline Points: 1829 |
Post Options
Thanks(0)
|
Sorry SC, been tied up (not literally) with some DurcTools stuff. The proposal looks like it has absolutely everything anyone could need. Tens
|
|
DarkenedHeart
New Poster Joined: 05 Mar 2021 Location: Montana Status: Offline Points: 19 |
Post Options
Thanks(0)
|
Looks good. Been a busy work for me.
Question I have is will this be expanded to track when buy / sell orders have been placed or removed at hubs/towns? Or is this purely for transaction based tracking?
|
|
GM Stormcrow
Moderator Group GM Joined: 23 Feb 2010 Location: Illyria Status: Offline Points: 3926 |
Post Options
Thanks(0)
|
This is currently transaction-based tracking on an individual trade level. If there is demand, I'm happy to expand it out to a proper higher-level feed linking to all individual-player trades at an API key level. So far, the general consensus seems to be that the higher level 'listing' API isn't really a priority. I totally get what you're asking about a global buy/sell orders feed, however there's a few issues with that conceptually, regarding asymmetry of information etc. ie, if there's a feed of all current order books in all hubs, then the idea of hub visibility range/radius is impaired, as everyone can theoretically have access to perfect pricing information across Illyria at all times. My worry there is that traders who take advantage of price disparities between hubs could potentially find themselves out of a career if perfect knowledge is available to all. There's still a price/quantity/distance/opportunity cost argument to be had, of course, even with perfect information. Though, as always, am receptive to thoughts/discussion on this. Best, SC Edited by GM Stormcrow - 20 May 2021 at 11:52 |
|
GM Stormcrow
Moderator Group GM Joined: 23 Feb 2010 Location: Illyria Status: Offline Points: 3926 |
Post Options
Thanks(0)
|
This should now be live. I'd be very grateful if players could test out that it's returning what's expected on pressing the XML button, and let me know of any issues soonest.
Best wishes, SC
|
|
Tensmoor
Postmaster General Joined: 07 Apr 2015 Location: Scotland Status: Offline Points: 1829 |
Post Options
Thanks(0)
|
At first glance it looks OK SC but I'll do a more complete check in a bit. Tens
|
|
GM Stormcrow
Moderator Group GM Joined: 23 Feb 2010 Location: Illyria Status: Offline Points: 3926 |
Post Options
Thanks(0)
|
Fab, thanks Tens. SC
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |