Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highest buy order as mass selling price option #106

Closed
gergelyszabo94 opened this issue Dec 7, 2019 · 2 comments
Closed

Highest buy order as mass selling price option #106

gergelyszabo94 opened this issue Dec 7, 2019 · 2 comments
Assignees

Comments

@gergelyszabo94
Copy link
Owner

@gergelyszabo94 gergelyszabo94 commented Dec 7, 2019

Check what it takes to get this info from the market and add an "instant sell price" column if its reliable.

@gergelyszabo94 gergelyszabo94 self-assigned this Dec 7, 2019
@gergelyszabo94 gergelyszabo94 added this to To do in Kanban Board Dec 7, 2019
@gergelyszabo94 gergelyszabo94 changed the title Highest buy order as mass selling price Highest buy order as mass selling price option Dec 7, 2019
@gergelyszabo94 gergelyszabo94 moved this from To do to In progress in Kanban Board Dec 17, 2019
@gergelyszabo94

This comment has been minimized.

Copy link
Owner Author

@gergelyszabo94 gergelyszabo94 commented Dec 18, 2019

Tonight's reversing results:
This "itemordershistogram" (exmple: https://steamcommunity.com/market/itemordershistogram?country=US&language=english&currency=3&item_nameid=40092015) is being called periodically on market listing pages, which returns results like this:
{"success":1,"sell_order_table":"<table class=\"market_commodity_orders_table\"><tr><th align=\"right\">Price<\/th><th align=\"right\">Quantity<\/th><\/tr><tr><td align=\"right\" class=\"\">1,75\u20ac<\/td><td align=\"right\">1<\/td><\/tr><tr><td align=\"right\" class=\"\">1,78\u20ac<\/td><td align=\"right\">1<\/td><\/tr><tr><td align=\"right\" class=\"\">1,91\u20ac<\/td><td align=\"right\">1<\/td><\/tr><tr><td align=\"right\" class=\"\">1,96\u20ac<\/td><td align=\"right\">2<\/td><\/tr><tr><td align=\"right\" class=\"\">1,97\u20ac<\/td><td align=\"right\">4<\/td><\/tr><tr><td align=\"right\" class=\"\">1,98\u20ac or more<\/td><td align=\"right\">2126<\/td><\/tr><\/table>","sell_order_summary":"<span class=\"market_commodity_orders_header_promote\">2135<\/span> for sale starting at <span class=\"market_commodity_orders_header_promote\">1,75\u20ac<\/span>","buy_order_table":"<table class=\"market_commodity_orders_table\"><tr><th align=\"right\">Price<\/th><th align=\"right\">Quantity<\/th><\/tr><tr><td align=\"right\" class=\"\">1,73\u20ac<\/td><td align=\"right\">1<\/td><\/tr><tr><td align=\"right\" class=\"\">1,68\u20ac<\/td><td align=\"right\">6<\/td><\/tr><tr><td align=\"right\" class=\"\">1,67\u20ac<\/td><td align=\"right\">10<\/td><\/tr><tr><td align=\"right\" class=\"\">1,66\u20ac<\/td><td align=\"right\">30<\/td><\/tr><tr><td align=\"right\" class=\"\">1,65\u20ac<\/td><td align=\"right\">89<\/td><\/tr><tr><td align=\"right\" class=\"\">1,64\u20ac or less<\/td><td align=\"right\">99645<\/td><\/tr><\/table>","buy_order_summary":"<span class=\"market_commodity_orders_header_promote\">99781<\/span> requests to buy at <span class=\"market_commodity_orders_header_promote\">1,73\u20ac<\/span> or lower","highest_buy_order":"173","lowest_sell_order":"175","buy_order_graph":[[1.73,1,"1 buy orders at 1,73\u20ac or higher"],[1.68,7,"7 buy orders at 1,68\u20ac or higher"],[1.67,17,"17 buy orders at 1,67\u20ac or higher"],[1.66,47,"47 buy orders at 1,66\u20ac or higher"],[1.65,136,"136 buy orders at 1,65\u20ac or higher"],[1.64,150,"150 buy orders at 1,64\u20ac or higher"],[1.63,154,"154 buy orders at 1,63\u20ac or higher"],[1.62,385,"385 buy orders at 1,62\u20ac or higher"],[1.61,391,"391 buy orders at 1,61\u20ac or higher"],[1.58,511,"511 buy orders at 1,58\u20ac or higher"],[1.57,779,"779 buy orders at 1,57\u20ac or higher"],[1.56,870,"870 buy orders at 1,56\u20ac or higher"],[1.55,1075,"1,075 buy orders at 1,55\u20ac or higher"],[1.54,1392,"1,392 buy orders at 1,54\u20ac or higher"],[1.53,1914,"1,914 buy orders at 1,53\u20ac or higher"],[1.52,2412,"2,412 buy orders at 1,52\u20ac or higher"],[1.51,2475,"2,475 buy orders at 1,51\u20ac or higher"],[1.5,2917,"2,917 buy orders at 1,50\u20ac or higher"],[1.49,3328,"3,328 buy orders at 1,49\u20ac or higher"],[1.47,3545,"3,545 buy orders at 1,47\u20ac or higher"],[1.46,3751,"3,751 buy orders at 1,46\u20ac or higher"],[1.45,4487,"4,487 buy orders at 1,45\u20ac or higher"],[1.44,5151,"5,151 buy orders at 1,44\u20ac or higher"],[1.43,5248,"5,248 buy orders at 1,43\u20ac or higher"],[1.42,5693,"5,693 buy orders at 1,42\u20ac or higher"],[1.41,5742,"5,742 buy orders at 1,41\u20ac or higher"],[1.4,6514,"6,514 buy orders at 1,40\u20ac or higher"],[1.39,6537,"6,537 buy orders at 1,39\u20ac or higher"],[1.38,6544,"6,544 buy orders at 1,38\u20ac or higher"],[1.35,6651,"6,651 buy orders at 1,35\u20ac or higher"],[1.34,7101,"7,101 buy orders at 1,34\u20ac or higher"],[1.33,7191,"7,191 buy orders at 1,33\u20ac or higher"],[1.32,7774,"7,774 buy orders at 1,32\u20ac or higher"],[1.31,8509,"8,509 buy orders at 1,31\u20ac or higher"],[1.3,9110,"9,110 buy orders at 1,30\u20ac or higher"],[1.29,9135,"9,135 buy orders at 1,29\u20ac or higher"],[1.28,9394,"9,394 buy orders at 1,28\u20ac or higher"],[1.27,9449,"9,449 buy orders at 1,27\u20ac or higher"],[1.26,9455,"9,455 buy orders at 1,26\u20ac or higher"],[1.24,9656,"9,656 buy orders at 1,24\u20ac or higher"],[1.23,9687,"9,687 buy orders at 1,23\u20ac or higher"],[1.22,9907,"9,907 buy orders at 1,22\u20ac or higher"],[1.21,10242,"10,242 buy orders at 1,21\u20ac or higher"],[1.2,10974,"10,974 buy orders at 1,20\u20ac or higher"],[1.19,11038,"11,038 buy orders at 1,19\u20ac or higher"],[1.18,11039,"11,039 buy orders at 1,18\u20ac or higher"],[1.17,11050,"11,050 buy orders at 1,17\u20ac or higher"],[1.16,11077,"11,077 buy orders at 1,16\u20ac or higher"],[1.15,11111,"11,111 buy orders at 1,15\u20ac or higher"],[1.12,12454,"12,454 buy orders at 1,12\u20ac or higher"],[1.11,12490,"12,490 buy orders at 1,11\u20ac or higher"],[1.1,12622,"12,622 buy orders at 1,10\u20ac or higher"],[1.09,12680,"12,680 buy orders at 1,09\u20ac or higher"],[1.08,12843,"12,843 buy orders at 1,08\u20ac or higher"],[1.07,13174,"13,174 buy orders at 1,07\u20ac or higher"],[1.06,13224,"13,224 buy orders at 1,06\u20ac or higher"],[1.04,13227,"13,227 buy orders at 1,04\u20ac or higher"],[1.03,13550,"13,550 buy orders at 1,03\u20ac or higher"],[1.01,13556,"13,556 buy orders at 1,01\u20ac or higher"],[1,14389,"14,389 buy orders at 1,--\u20ac or higher"],[0.99,14420,"14,420 buy orders at 0,99\u20ac or higher"],[0.98,14436,"14,436 buy orders at 0,98\u20ac or higher"],[0.97,14458,"14,458 buy orders at 0,97\u20ac or higher"],[0.96,14461,"14,461 buy orders at 0,96\u20ac or higher"],[0.94,14464,"14,464 buy orders at 0,94\u20ac or higher"],[0.93,14497,"14,497 buy orders at 0,93\u20ac or higher"],[0.92,14516,"14,516 buy orders at 0,92\u20ac or higher"],[0.89,15042,"15,042 buy orders at 0,89\u20ac or higher"],[0.88,15194,"15,194 buy orders at 0,88\u20ac or higher"],[0.87,15197,"15,197 buy orders at 0,87\u20ac or higher"],[0.86,15198,"15,198 buy orders at 0,86\u20ac or higher"],[0.84,15379,"15,379 buy orders at 0,84\u20ac or higher"],[0.83,15681,"15,681 buy orders at 0,83\u20ac or higher"],[0.82,15682,"15,682 buy orders at 0,82\u20ac or higher"],[0.81,15684,"15,684 buy orders at 0,81\u20ac or higher"],[0.8,15785,"15,785 buy orders at 0,80\u20ac or higher"],[0.78,15885,"15,885 buy orders at 0,78\u20ac or higher"],[0.77,15886,"15,886 buy orders at 0,77\u20ac or higher"],[0.76,16230,"16,230 buy orders at 0,76\u20ac or higher"],[0.75,16320,"16,320 buy orders at 0,75\u20ac or higher"],[0.74,16323,"16,323 buy orders at 0,74\u20ac or higher"],[0.73,16334,"16,334 buy orders at 0,73\u20ac or higher"],[0.72,16346,"16,346 buy orders at 0,72\u20ac or higher"],[0.71,16459,"16,459 buy orders at 0,71\u20ac or higher"],[0.7,17565,"17,565 buy orders at 0,70\u20ac or higher"],[0.69,17567,"17,567 buy orders at 0,69\u20ac or higher"],[0.66,17616,"17,616 buy orders at 0,66\u20ac or higher"],[0.65,17619,"17,619 buy orders at 0,65\u20ac or higher"],[0.64,17727,"17,727 buy orders at 0,64\u20ac or higher"],[0.63,17786,"17,786 buy orders at 0,63\u20ac or higher"],[0.62,17898,"17,898 buy orders at 0,62\u20ac or higher"],[0.61,18657,"18,657 buy orders at 0,61\u20ac or higher"],[0.6,18661,"18,661 buy orders at 0,60\u20ac or higher"],[0.59,23071,"23,071 buy orders at 0,59\u20ac or higher"],[0.58,23073,"23,073 buy orders at 0,58\u20ac or higher"],[0.57,23111,"23,111 buy orders at 0,57\u20ac or higher"],[0.55,23166,"23,166 buy orders at 0,55\u20ac or higher"],[0.54,24159,"24,159 buy orders at 0,54\u20ac or higher"],[0.53,24180,"24,180 buy orders at 0,53\u20ac or higher"],[0.52,24532,"24,532 buy orders at 0,52\u20ac or higher"],[0.51,24554,"24,554 buy orders at 0,51\u20ac or higher"]],"sell_order_graph":[[1.75,1,"1 sell orders at 1,75\u20ac or lower"],[1.78,2,"2 sell orders at 1,78\u20ac or lower"],[1.91,3,"3 sell orders at 1,91\u20ac or lower"],[1.96,5,"5 sell orders at 1,96\u20ac or lower"],[1.97,9,"9 sell orders at 1,97\u20ac or lower"],[1.98,18,"18 sell orders at 1,98\u20ac or lower"],[1.99,27,"27 sell orders at 1,99\u20ac or lower"],[2,64,"64 sell orders at 2,--\u20ac or lower"],[2.01,70,"70 sell orders at 2,01\u20ac or lower"],[2.02,82,"82 sell orders at 2,02\u20ac or lower"],[2.03,90,"90 sell orders at 2,03\u20ac or lower"],[2.04,111,"111 sell orders at 2,04\u20ac or lower"],[2.07,177,"177 sell orders at 2,07\u20ac or lower"],[2.08,188,"188 sell orders at 2,08\u20ac or lower"],[2.09,197,"197 sell orders at 2,09\u20ac or lower"],[2.1,214,"214 sell orders at 2,10\u20ac or lower"],[2.11,226,"226 sell orders at 2,11\u20ac or lower"],[2.12,279,"279 sell orders at 2,12\u20ac or lower"],[2.13,298,"298 sell orders at 2,13\u20ac or lower"],[2.14,356,"356 sell orders at 2,14\u20ac or lower"],[2.15,402,"402 sell orders at 2,15\u20ac or lower"],[2.16,412,"412 sell orders at 2,16\u20ac or lower"],[2.18,451,"451 sell orders at 2,18\u20ac or lower"],[2.19,465,"465 sell orders at 2,19\u20ac or lower"],[2.2,496,"496 sell orders at 2,20\u20ac or lower"],[2.21,514,"514 sell orders at 2,21\u20ac or lower"],[2.22,531,"531 sell orders at 2,22\u20ac or lower"],[2.23,540,"540 sell orders at 2,23\u20ac or lower"],[2.24,558,"558 sell orders at 2,24\u20ac or lower"],[2.25,568,"568 sell orders at 2,25\u20ac or lower"],[2.26,579,"579 sell orders at 2,26\u20ac or lower"],[2.27,592,"592 sell orders at 2,27\u20ac or lower"],[2.3,681,"681 sell orders at 2,30\u20ac or lower"],[2.31,700,"700 sell orders at 2,31\u20ac or lower"],[2.32,709,"709 sell orders at 2,32\u20ac or lower"],[2.33,717,"717 sell orders at 2,33\u20ac or lower"],[2.34,768,"768 sell orders at 2,34\u20ac or lower"],[2.35,784,"784 sell orders at 2,35\u20ac or lower"],[2.36,791,"791 sell orders at 2,36\u20ac or lower"],[2.37,800,"800 sell orders at 2,37\u20ac or lower"],[2.38,806,"806 sell orders at 2,38\u20ac or lower"],[2.39,819,"819 sell orders at 2,39\u20ac or lower"],[2.41,847,"847 sell orders at 2,41\u20ac or lower"],[2.42,862,"862 sell orders at 2,42\u20ac or lower"],[2.43,872,"872 sell orders at 2,43\u20ac or lower"],[2.44,884,"884 sell orders at 2,44\u20ac or lower"],[2.45,894,"894 sell orders at 2,45\u20ac or lower"],[2.46,907,"907 sell orders at 2,46\u20ac or lower"],[2.47,937,"937 sell orders at 2,47\u20ac or lower"],[2.48,938,"938 sell orders at 2,48\u20ac or lower"],[2.49,946,"946 sell orders at 2,49\u20ac or lower"],[2.5,948,"948 sell orders at 2,50\u20ac or lower"],[2.53,966,"966 sell orders at 2,53\u20ac or lower"],[2.54,981,"981 sell orders at 2,54\u20ac or lower"],[2.55,983,"983 sell orders at 2,55\u20ac or lower"],[2.56,996,"996 sell orders at 2,56\u20ac or lower"],[2.57,1004,"1,004 sell orders at 2,57\u20ac or lower"],[2.58,1023,"1,023 sell orders at 2,58\u20ac or lower"],[2.59,1027,"1,027 sell orders at 2,59\u20ac or lower"],[2.6,1030,"1,030 sell orders at 2,60\u20ac or lower"],[2.61,1031,"1,031 sell orders at 2,61\u20ac or lower"],[2.62,1036,"1,036 sell orders at 2,62\u20ac or lower"],[2.64,1053,"1,053 sell orders at 2,64\u20ac or lower"],[2.65,1070,"1,070 sell orders at 2,65\u20ac or lower"],[2.66,1071,"1,071 sell orders at 2,66\u20ac or lower"],[2.67,1074,"1,074 sell orders at 2,67\u20ac or lower"],[2.68,1079,"1,079 sell orders at 2,68\u20ac or lower"],[2.69,1103,"1,103 sell orders at 2,69\u20ac or lower"],[2.7,1109,"1,109 sell orders at 2,70\u20ac or lower"],[2.71,1114,"1,114 sell orders at 2,71\u20ac or lower"],[2.72,1121,"1,121 sell orders at 2,72\u20ac or lower"],[2.73,1125,"1,125 sell orders at 2,73\u20ac or lower"],[2.76,1131,"1,131 sell orders at 2,76\u20ac or lower"],[2.78,1132,"1,132 sell orders at 2,78\u20ac or lower"],[2.79,1135,"1,135 sell orders at 2,79\u20ac or lower"],[2.8,1141,"1,141 sell orders at 2,80\u20ac or lower"],[2.81,1167,"1,167 sell orders at 2,81\u20ac or lower"],[2.82,1170,"1,170 sell orders at 2,82\u20ac or lower"],[2.83,1253,"1,253 sell orders at 2,83\u20ac or lower"],[2.84,1258,"1,258 sell orders at 2,84\u20ac or lower"],[2.85,1262,"1,262 sell orders at 2,85\u20ac or lower"],[2.87,1298,"1,298 sell orders at 2,87\u20ac or lower"],[2.89,1301,"1,301 sell orders at 2,89\u20ac or lower"],[2.9,1308,"1,308 sell orders at 2,90\u20ac or lower"],[2.91,1309,"1,309 sell orders at 2,91\u20ac or lower"],[2.92,1311,"1,311 sell orders at 2,92\u20ac or lower"],[2.93,1313,"1,313 sell orders at 2,93\u20ac or lower"],[2.94,1321,"1,321 sell orders at 2,94\u20ac or lower"],[2.95,1323,"1,323 sell orders at 2,95\u20ac or lower"],[2.96,1326,"1,326 sell orders at 2,96\u20ac or lower"],[2.99,1328,"1,328 sell orders at 2,99\u20ac or lower"],[3,1355,"1,355 sell orders at 3,--\u20ac or lower"],[3.02,1356,"1,356 sell orders at 3,02\u20ac or lower"],[3.03,1357,"1,357 sell orders at 3,03\u20ac or lower"],[3.04,1363,"1,363 sell orders at 3,04\u20ac or lower"],[3.05,1429,"1,429 sell orders at 3,05\u20ac or lower"],[3.06,1440,"1,440 sell orders at 3,06\u20ac or lower"],[3.07,1441,"1,441 sell orders at 3,07\u20ac or lower"],[3.08,1443,"1,443 sell orders at 3,08\u20ac or lower"],[3.1,1558,"1,558 sell orders at 3,10\u20ac or lower"],[3.12,1559,"1,559 sell orders at 3,12\u20ac or lower"]],"graph_max_y":30000,"graph_min_x":0.51,"graph_max_x":3.12,"price_prefix":"","price_suffix":"\u20ac"}

It would be perfect if I could map the item_nameid to the market_hash_name somehow. Unfortunately it's not a straightforward task at all. There are basically two options:

  • Going through all listings and mapping them and store this mapping to be able to look it up for the requests.
  • Loading the page and parsing the html for the item_nameid before making each call.

I would not go into the hustle of doing the former so I will evaluate the viability of the latter tomorrow.

@gergelyszabo94

This comment has been minimized.

Copy link
Owner Author

@gergelyszabo94 gergelyszabo94 commented Dec 18, 2019

result:
image

@gergelyszabo94 gergelyszabo94 moved this from In progress to Done in Kanban Board Dec 18, 2019
@gergelyszabo94 gergelyszabo94 moved this from Done to Released in Kanban Board Dec 23, 2019
@gergelyszabo94 gergelyszabo94 removed this from Released in Kanban Board Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.