Game.market updates please
-
Modifying: should be kept as a Game.market discussion topic.
More modifying: Also I think the 100 transaction limit for Game.market.incomingTransactions/Game.market.outgoingTransactions is too short, would be great to get full or at least way more history.
As far as i can see/tell, there appears to be no certain/consistent way of getting exact credit changes with orders.
Any comments appreciated.
Regards, market enthusiast
-
Did you check the Game.market.incomingTransactions and Game.market.outgoingTransactions? They list you last transactions with credit price and quantity (amount) traded, just multiply those and you get the credit change for each transaction? Or are you asking for something else?
-
@geir1983 I did, but neither show the exact credit value (+/-), and Structure.terminal.send and Game.market.deal are based on energy. Mathing credit change only gives a rough estimate, to have a better understanding I'd need to get exact credit change values (as seen on Game.market history page).
-
https://docs.screeps.com/api/#Game.market.incomingTransactions
[{ transactionId : "56dec546a180ce641dd65960", time : 10390687, sender : {username: "Sender"}, recipient : {username: "Me"}, resourceType : "U", amount : 100, from : "W0N0", to : "W10N10", description : "trade contract #1", order: { // optional id : "55c34a6b5be41a0a6e80c68b", type : "sell", price : 2.95 } }]
What's wrong with
amount * order.price
?
-
@tigga Nothing (Excuse my, i didn't even see/notice that). Can I get CPU price somehow? At least the order doesn't seem to appear on my Game.market.getIncomingOrders. Also for me, Game.market.getHistory is falsely designed, since it shows price fluctuation history and not the actual history page content (function sounds misleading). Something like Game.market.getFluctuation seems more appropriate.
Modifying: Also if anyone has any good ideas or relevant to topic, please do comment.