Hey,
I'm requesting my stock transactions from the API (https://api.torn.com/user/?selections=stocks) and I've noticed that it returns outdated data.
For example, I sold all my LAG shares a couple of minutes ago:
13:32:06 - 14/06/23 You sold 2,250,000x Legal Authorities Group shares at $409.05 each for a total of $919,442,137 after $920,363 in fees
But my former 2 blocks are still in the JSON response now, 35 minutes later (marked in red):
{
"stocks":{
"1":{
"stock_id":1,
"total_shares":4860326,
"dividend":{
"ready":0,
"increment":1,
"progress":24,
"frequency":31
},
"transactions":{
"2789347":{
"shares":3000000,
"bought_price":906.41,
"time_bought":1647169047
},
"6564569":{
"shares":1860326,
"bought_price":1075.08,
"time_bought":1686728768
}
}
},
"4":{
"stock_id":4,
"total_shares":2250000,
"dividend":{
"ready":0,
"increment":2,
"progress":1,
"frequency":7
},
"transactions":{
"6555451":{
"shares":750000,
"bought_price":404.22,
"time_bought":1686644822
},
"6555456":{
"shares":1500000,
"bought_price":404.22,
"time_bought":1686644856
}
}
},
"5":{
"stock_id":5,
"total_shares":555598,
"transactions":{
"6512361":{
"shares":555598,
"bought_price":146.39,
"time_bought":1686244817
}
}
},
"6":{
"stock_id":6,
"total_shares":3500000,
"dividend":{
"ready":0,
"increment":3,
"progress":10,
"frequency":31
},
"transactions":{
"6473831":{
"shares":500000,
"bought_price":253.29,
"time_bought":1685896587
},
"6473832":{
"shares":1000000,
"bought_price":253.29,
"time_bought":1685896594
},
"6473833":{
"shares":2000000,
"bought_price":253.29,
"time_bought":1685896603
}
}
},
"7":{
"stock_id":7,
"total_shares":9450000,
"dividend":{
"ready":0,
"increment":6,
"progress":5,
"frequency":7
},
"transactions":{
"6390381":{
"shares":4650000,
"bought_price":323.97,
"time_bought":1685080184
},
"6393969":{
"shares":4800000,
"bought_price":324.81,
"time_bought":1685117434
}
}
},
"11":{
"stock_id":11,
"total_shares":18680618,
"benefit":{
"ready":1,
"increment":1,
"progress":7,
"frequency":7
},
"transactions":{
"6454154":{
"shares":18680618,
"bought_price":222.59,
"time_bought":1685689933
}
}
},
"16":{
"stock_id":16,
"total_shares":4954815,
"dividend":{
"ready":0,
"increment":3,
"progress":0,
"frequency":7
},
"transactions":{
"2402238":{
"shares":1500000,
"bought_price":712.51,
"time_bought":1642619430
},
"6345356":{
"shares":2000000,
"bought_price":643.95,
"time_bought":1684676143
},
"6471264":{
"shares":1454815,
"bought_price":632.52,
"time_bought":1685868225
}
}
},
"18":{
"stock_id":18,
"total_shares":7000000,
"dividend":{
"ready":0,
"increment":3,
"progress":0,
"frequency":7
},
"transactions":{
"2966848":{
"shares":1000000,
"bought_price":556.8,
"time_bought":1649261545
},
"6503516":{
"shares":2000000,
"bought_price":533.94,
"time_bought":1686163525
},
"6508489":{
"shares":4000000,
"bought_price":533.81,
"time_bought":1686207260
}
}
},
"20":{
"stock_id":20,
"total_shares":1624598,
"benefit":{
"ready":0,
"increment":1,
"progress":1,
"frequency":7
},
"transactions":{
"6555170":{
"shares":1624598,
"bought_price":288.72,
"time_bought":1686641492
}
}
},
"25":{
"stock_id":25,
"total_shares":5565167,
"benefit":{
"ready":1,
"increment":1,
"progress":7,
"frequency":7
},
"transactions":{
"4884903":{
"shares":1000000,
"bought_price":81.38,
"time_bought":1670594689
},
"6564574":{
"shares":4565167,
"bought_price":87.62,
"time_bought":1686728808
}
}
},
"28":{
"stock_id":28,
"total_shares":836698,
"dividend":{
"ready":0,
"increment":3,
"progress":0,
"frequency":7
},
"transactions":{
"6564575":{
"shares":836698,
"bought_price":547.44,
"time_bought":1686728828
}
}
},
"29":{
"stock_id":29,
"total_shares":5250000,
"dividend":{
"ready":0,
"increment":4,
"progress":0,
"frequency":7
},
"transactions":{
"6303775":{
"shares":350000,
"bought_price":698.14,
"time_bought":1684304480
},
"6303776":{
"shares":700000,
"bought_price":698.14,
"time_bought":1684304507
},
"6303784":{
"shares":1400000,
"bought_price":698.04,
"time_bought":1684304569
},
"6303790":{
"shares":2800000,
"bought_price":698.1,
"time_bought":1684304630
}
}
},
"34":{
"stock_id":34,
"total_shares":17484067,
"benefit":{
"ready":1,
"increment":1,
"progress":7,
"frequency":7
},
"transactions":{
"5447080":{
"shares":7500000,
"bought_price":97.36,
"time_bought":1676194480
},
"6536015":{
"shares":5640962,
"bought_price":93.84,
"time_bought":1686471715
},
"6564573":{
"shares":4343105,
"bought_price":92.1,
"time_bought":1686728798
}
}
},
"35":{
"stock_id":35,
"total_shares":30000000,
"dividend":{
"ready":0,
"increment":2,
"progress":0,
"frequency":7
},
"transactions":{
"6162907":{
"shares":30000000,
"bought_price":66.83,
"time_bought":1683016736
}
}
}
}
}
Thanks for looking into it!
I'm requesting my stock transactions from the API (https://api.torn.com/user/?selections=stocks) and I've noticed that it returns outdated data.
For example, I sold all my LAG shares a couple of minutes ago:
13:32:06 - 14/06/23 You sold 2,250,000x Legal Authorities Group shares at $409.05 each for a total of $919,442,137 after $920,363 in fees
But my former 2 blocks are still in the JSON response now, 35 minutes later (marked in red):
{
"stocks":{
"1":{
"stock_id":1,
"total_shares":4860326,
"dividend":{
"ready":0,
"increment":1,
"progress":24,
"frequency":31
},
"transactions":{
"2789347":{
"shares":3000000,
"bought_price":906.41,
"time_bought":1647169047
},
"6564569":{
"shares":1860326,
"bought_price":1075.08,
"time_bought":1686728768
}
}
},
"4":{
"stock_id":4,
"total_shares":2250000,
"dividend":{
"ready":0,
"increment":2,
"progress":1,
"frequency":7
},
"transactions":{
"6555451":{
"shares":750000,
"bought_price":404.22,
"time_bought":1686644822
},
"6555456":{
"shares":1500000,
"bought_price":404.22,
"time_bought":1686644856
}
}
},
"5":{
"stock_id":5,
"total_shares":555598,
"transactions":{
"6512361":{
"shares":555598,
"bought_price":146.39,
"time_bought":1686244817
}
}
},
"6":{
"stock_id":6,
"total_shares":3500000,
"dividend":{
"ready":0,
"increment":3,
"progress":10,
"frequency":31
},
"transactions":{
"6473831":{
"shares":500000,
"bought_price":253.29,
"time_bought":1685896587
},
"6473832":{
"shares":1000000,
"bought_price":253.29,
"time_bought":1685896594
},
"6473833":{
"shares":2000000,
"bought_price":253.29,
"time_bought":1685896603
}
}
},
"7":{
"stock_id":7,
"total_shares":9450000,
"dividend":{
"ready":0,
"increment":6,
"progress":5,
"frequency":7
},
"transactions":{
"6390381":{
"shares":4650000,
"bought_price":323.97,
"time_bought":1685080184
},
"6393969":{
"shares":4800000,
"bought_price":324.81,
"time_bought":1685117434
}
}
},
"11":{
"stock_id":11,
"total_shares":18680618,
"benefit":{
"ready":1,
"increment":1,
"progress":7,
"frequency":7
},
"transactions":{
"6454154":{
"shares":18680618,
"bought_price":222.59,
"time_bought":1685689933
}
}
},
"16":{
"stock_id":16,
"total_shares":4954815,
"dividend":{
"ready":0,
"increment":3,
"progress":0,
"frequency":7
},
"transactions":{
"2402238":{
"shares":1500000,
"bought_price":712.51,
"time_bought":1642619430
},
"6345356":{
"shares":2000000,
"bought_price":643.95,
"time_bought":1684676143
},
"6471264":{
"shares":1454815,
"bought_price":632.52,
"time_bought":1685868225
}
}
},
"18":{
"stock_id":18,
"total_shares":7000000,
"dividend":{
"ready":0,
"increment":3,
"progress":0,
"frequency":7
},
"transactions":{
"2966848":{
"shares":1000000,
"bought_price":556.8,
"time_bought":1649261545
},
"6503516":{
"shares":2000000,
"bought_price":533.94,
"time_bought":1686163525
},
"6508489":{
"shares":4000000,
"bought_price":533.81,
"time_bought":1686207260
}
}
},
"20":{
"stock_id":20,
"total_shares":1624598,
"benefit":{
"ready":0,
"increment":1,
"progress":1,
"frequency":7
},
"transactions":{
"6555170":{
"shares":1624598,
"bought_price":288.72,
"time_bought":1686641492
}
}
},
"25":{
"stock_id":25,
"total_shares":5565167,
"benefit":{
"ready":1,
"increment":1,
"progress":7,
"frequency":7
},
"transactions":{
"4884903":{
"shares":1000000,
"bought_price":81.38,
"time_bought":1670594689
},
"6564574":{
"shares":4565167,
"bought_price":87.62,
"time_bought":1686728808
}
}
},
"28":{
"stock_id":28,
"total_shares":836698,
"dividend":{
"ready":0,
"increment":3,
"progress":0,
"frequency":7
},
"transactions":{
"6564575":{
"shares":836698,
"bought_price":547.44,
"time_bought":1686728828
}
}
},
"29":{
"stock_id":29,
"total_shares":5250000,
"dividend":{
"ready":0,
"increment":4,
"progress":0,
"frequency":7
},
"transactions":{
"6303775":{
"shares":350000,
"bought_price":698.14,
"time_bought":1684304480
},
"6303776":{
"shares":700000,
"bought_price":698.14,
"time_bought":1684304507
},
"6303784":{
"shares":1400000,
"bought_price":698.04,
"time_bought":1684304569
},
"6303790":{
"shares":2800000,
"bought_price":698.1,
"time_bought":1684304630
}
}
},
"34":{
"stock_id":34,
"total_shares":17484067,
"benefit":{
"ready":1,
"increment":1,
"progress":7,
"frequency":7
},
"transactions":{
"5447080":{
"shares":7500000,
"bought_price":97.36,
"time_bought":1676194480
},
"6536015":{
"shares":5640962,
"bought_price":93.84,
"time_bought":1686471715
},
"6564573":{
"shares":4343105,
"bought_price":92.1,
"time_bought":1686728798
}
}
},
"35":{
"stock_id":35,
"total_shares":30000000,
"dividend":{
"ready":0,
"increment":2,
"progress":0,
"frequency":7
},
"transactions":{
"6162907":{
"shares":30000000,
"bought_price":66.83,
"time_bought":1683016736
}
}
}
}
}
Thanks for looking into it!