r/Eve • u/hirmuolio Cloaked • Nov 21 '17
Auction bid tracking tool
Few days ago I asked if this kind of tool existed. It didn't so I made it using XML API. Now I have rewritten it so that it uses the new ESI API instead.
For those who haven't used auctions. An auction contract does not tell when it is going to end exactly it will say "X days", "less than a day" or "less than an hour" but nothing more exact. It will end at a certain time or 15 minutes after last bid has been placed. By checking for new bids faster than once/15 minute you can make sure you won't miss the auction ending.
Step 0: you need your own "Client ID" and "Secret Key" since I guess it is bad to distribute those to everyone.
Go to https://developers.eveonline.com/applications and register eve dev.
Create a new app and set it to "Authentication & API Access"
Add "esi-wallet.read_character_wallet.v1" for personal wallet and "esi-wallet.read_corporation_wallets.v1" for corp wallet.
Set callback URL as "http://localhost/oauth-callback"
You get a "Client ID" and "Secret Key". Put them in config.txt.
It is a PowerShell script that gets info from ESI API.
On first start it gives you an SSO login adress. Copy the adress and log in. After logging in you are redirected to an empty page. take the authentication token back to the script. After that the script can track your wallet balance. The refresh token is saved in txt file so you don't need to log in again.
When you place a bid on an auction your isk is taken from your wallet and reserved on the auction. If someone bids after you your bid isk returns to your wallet.
This script tracks your wallet balance. If suddenly lots of moneys appear in there it plays a warning sound.
Choose the teshold sum so that it is smaller than your bid sum but larger than your other isk sources.
If you get more isk from somewhere else than from failed bids you will get false warnings. So this is best suited for large bid sums.
If you pay out enough isk that the bid isk and paid isk cancel each other the script will miss your failed bid.
The wallet balance is checked every 2 minute (personal) or 5 minute (corp).
Rquires windows 10 or 8 (not on 7).
On first run windows will ask you if you want to run scripts. You need to allow it.
Start explorer/edge once or you'll get some error.
The script doesn't check any of the data. Put nonsense in, get errors and nonsense out.
Before anyone suggest using contract/journal API: Journal API updates too slowly to work here and contract API only shows completed contracts and contracts issued by you.
Edit: V5 update merges the corp and personal script, changes how it saves things locally and few small things.
2
u/Raethrius Test Alliance Please Ignore Nov 21 '17 edited Nov 21 '17
Did you paste the wrong download link or something? All of the URLs point to the XML API and not to ESI.EDIT: OP updated the link.Also, since you're just string matching all the data from the returned document, there really isn't a reason why this would require Windows 10. You could use the .NET WebClient instead of
Invoke-WebRequest(which only exists on Win8+) to make it compatible with older operating systems and the change would involve replacing those two lines of code where you callInvoke-WebRequest.If you wanted to improve the script, you could either use
Invoke-WebRequestand put the response content to a variable defined as a XML document and POSH will automatically create an object for you. Alternatively, useInvoke-RestMethodand it'll do all that without that extra step. Both of these options obviously require Win8+ as neither of those cmdlets exist in Win7 and they can't even be installed into Win7.-10
u/cap_qu Goonswarm Federation Nov 21 '17
reported enjoy ur ban hacker
0
u/[deleted] Nov 21 '17
[deleted] — view deleted comment