windowdog 5 月之前
父節點
當前提交
844fd082b8

+ 13 - 7
src/code/tamper_get_topAholders_sol_gmgn.js

@@ -48,7 +48,7 @@ var number_chars_arr = ["k", "m", "b", "t", "p"];
 function get_thead_arr_holders() {
 
     // let titlearr = _thead.innerText.trim().split(/\r?\n/);
-    let titlearr = ['Maker', 'SOL', 'Owned_per', 'Owned_amount', 'Buy_counts', 'Sell_counts'];
+    let titlearr = ['Maker', 'SOL', 'Owned_per', 'Owned_amount_simple', 'Owned_amount', 'Buy_counts', 'Sell_counts'];
     return titlearr;
 }
 
@@ -269,11 +269,12 @@ async function get_tbody_data_holders() {
                         float_balance = parseFloat(str_balance) * 10 ** number_chars_obj[number_char];
                     }
                 }
+
                 tdtexts[1] = float_balance;
 
 
             } else if (i == 2) {
-                // old bought
+
                 // Owned%
 
                 let str_owned = "0";
@@ -301,14 +302,19 @@ async function get_tbody_data_holders() {
                 let arr_sol_amount = arr_tds[i].children[0].children;
 
                 str_token_amount = arr_sol_amount[1].innerText.trim().toLowerCase();
+                if (str_token_amount == "--") {
+                    str_token_amount = "0";
+
+                }
 
                 float_token_amount = parseFloat(str_token_amount);
                 for (let number_char of number_chars_arr) {
                     if (str_token_amount.indexOf(number_char) != -1) {
-                        float_sol = parseFloat(str_token_amount) * 10 ** number_chars_obj[number_char];
+                        float_token_amount = parseFloat(str_token_amount) * 10 ** number_chars_obj[number_char];
                     }
                 }
-                tdtexts[3] = float_token_amount;
+                tdtexts[3] = str_token_amount;
+                tdtexts[4] = float_token_amount;
 
 
 
@@ -351,8 +357,8 @@ async function get_tbody_data_holders() {
 
                 }
 
-                tdtexts[4] = float_buy_counts;
-                tdtexts[5] = float_sell_counts;
+                tdtexts[5] = float_buy_counts;
+                tdtexts[6] = float_sell_counts;
 
                 continue
 
@@ -534,7 +540,7 @@ var res_data_toptrader = [];
     mydivbox.appendChild(button_holders);
 
     mydivbox.style.position = "fixed";
-    mydivbox.style.top = "80px";
+    mydivbox.style.top = "180px";
     mydivbox.style.right = "40px";
     document.body.appendChild(mydivbox);
 

二進制
src/library/analysis_token/4GULMPKBJLruChBZWksZzukAg1AjSCmCTMn9ny2Xpump/4GULMPKBJLruChBZWksZzukAg1AjSCmCTMn9ny2Xpump_holder_gmgn_sol.xlsx


二進制
src/library/analysis_token/4GULMPKBJLruChBZWksZzukAg1AjSCmCTMn9ny2Xpump/4GULMPKBJLruChBZWksZzukAg1AjSCmCTMn9ny2Xpump_top_gmgn_sol.xlsx


二進制
src/library/analysis_token/4GULMPKBJLruChBZWksZzukAg1AjSCmCTMn9ny2Xpump/A4nTzSw1oZKK846zGv8diWw6dGXqnGPJwbxyJ85WM4Sg.docx


+ 0 - 0
src/library/analysis_token/4GULMPKBJLruChBZWksZzukAg1AjSCmCTMn9ny2Xpump/CzmXEA9CtZiU93DuZ57QLpoTmQ9djgZeSZEMz72aCL3W.docx


二進制
src/library/analysis_token/4GULMPKBJLruChBZWksZzukAg1AjSCmCTMn9ny2Xpump/EeS7DBots7zF7JA4iCPun1uA779aXCPCBhe4kGkuCuRA.docx


二進制
src/library/analysis_token/4GULMPKBJLruChBZWksZzukAg1AjSCmCTMn9ny2Xpump/汇总.xlsx


+ 3 - 0
src/library/analysis_token/HeJUFDxfJSzYFUuHLxkMqCgytU31G6mjP4wKviwqpump/分析.md

@@ -0,0 +1,3 @@
+
+
+tele 西瓜 提及的

二進制
src/library/analysis_token/HeJUFDxfJSzYFUuHLxkMqCgytU31G6mjP4wKviwqpump/相关系列token.xlsx


二進制
src/library/analysis_token/HzkBrfPPkqk6mwNNSYhjkw1AkfNZA6zwvKzQMacapump/HzkBrfPPkqk6mwNNSYhjkw1AkfNZA6zwvKzQMacapump_holder_gmgn_sol.xlsx


+ 101 - 0
src/library/analysis_token/HzkBrfPPkqk6mwNNSYhjkw1AkfNZA6zwvKzQMacapump/HzkBrfPPkqk6mwNNSYhjkw1AkfNZA6zwvKzQMacapump_holder_gmgn_sol_1729780421.csv

@@ -0,0 +1,101 @@
+Maker,SOL,Owned_per,Owned_amount_simple,Owned_amount,Buy_counts,Sell_counts
+9Envpo2i3Gg86emjyJaCo3TC9amm5M6dhrLmpJxojMit,0.647,3.66,36.6m,36600000,0,0
+5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1,6.16,3.4,34m,34000000,0,0
+3qkjwVDty2WAeqwuxDXSRdikZJGmo3FrhRLcpdgqTgLJ,1.65,2.19,21.9m,21900000,1,78
+C2n9iEKWntCSVwcpEdjR2VkXYvfdwuXfVk4N9DNRF47c,506.51,2.14,21.4m,21400000,12,0
+9vmsu1d611vctUDcDTQXynYYVSJabMceyXWkhayVWYKg,0.012,2.1,21m,21000000,0,0
+5WRoMdhyQSuRRTAUkxjB8Cu3ss15d2e1Autvi6aGfF3s,2.31,2.06,20.8m,20800000,20,0
+G2148QCmWzHbA6dq2M8dQzjy9NtLWHoyZjvzPP4UZiee,329.48,2,37.9m,37900000,2,0
+97WCDbozRohxyrqYR9RSkge96rCaD7aCPqGW38cXGcL3,1.15,2,20m,20000000,1,0
+2bZuV31edRz9Cwzo41WY1f26LWUDt6LUvzVNt5r7F7qH,2.25,1.68,16.8m,16800000,4,0
+3QnBeoPMPB3H78WgJssep7rs3A8477LR2FhtwrnZoRie,33930,1.54,15.4m,15400000,0,0
+AYrcAdHYvyAdHm2moqEfD9awkAKfToHmK2Jzibd6CJVi,0.913,1.4,14m,14000000,8,0
+D4zVhwuUsFbcaty7wJhNEZ7VEwPHXQ5d2heXPxM5yWhL,109.14,1.39,13.9m,13900000,133,130
+CMzohyRihiiuHMv6jGqkKn4BCpTqF7C2BFYk4BixfpUz,0.905,1.25,12.5m,12500000,9,0
+HhcZb1Gmu6QdjijCEBPFxutxcHcMULh9RCxX1XnX7mhM,1820.49,1.06,10.6m,10600000,2,0
+36zrkQSXaQ6ER9uMN2Em44FPdKSkZe5bgGskEJxnJFeH,22.01,1.05,10.5m,10500000,31,5
+DcxaQjGAVqrD7GfMsfVVZ8VRgCEvUuK8N4PxAGTRoCy2,500.82,1.03,10.3m,10300000,10,0
+93t8MufqxSGtvjDtEAPqpEzpTY84WRGeyAUgF7ysTgAS,1971.28,1.01,10.1m,10100000,0,0
+53myo8WckSgQUSe8Bfi9vfpFN1wD9Gf9p6xcHJH4XXZ8,3.9,1.01,10.1m,10100000,34,2
+8zFZHuSRuDpuAR7J6FzwyF3vKNx4CVW3DFHJerQhc7Zd,185.48,1,10m,10000000,10,0
+6ykoioDZEcC9Rk1vexd2F49KDHzP63nHh21Hm4CqrWtx,171.75,0.89,8.9m,8900000,14,11
+Hg6xLWjinafN9UWitaVVRoGDw5rQhpwiPfHwmAjQcpeJ,12.08,0.8,8m,8000000,14,8
+42o6mtQQRVPoqBrTtqtVE1DfEFuzQX2Amx4Jdjdxa7FZ,0.339,0.67,6.7m,6700000,4,0
+AwSyCM8jkiaupUMbw1MyjQx4Ym4Bcixz5Kraga3mEpqv,0.55,0.65,6.5m,6500000,7,1
+HW8vXb3KLiMVEiGLyHGs5H4cieaMqfBMbmDbUYCu9ris,1318.28,0.61,6.1m,6100000,11,7
+2pwaWewS18DTWtFiyUhmVRUjSnsvhzbuGT7fnDRgjbkX,371.14,0.59,5.9m,5900000,2,4
+J12UkrKy9shrATQvMLsuCUMVcn8dj6qSHcSjpv23nb3L,21.99,0.54,5.4m,5400000,5,0
+A2hVbPn467dF6JDpfkStfufuCuVu3rvxppHMZrgvmJxW,0.34,0.52,5.2m,5200000,6,0
+3Dp2NyiSx5Vc4b4jS6trW6Dh8RfDrmMiJ2KX2nP7pYKk,67.17,0.52,5.2m,5200000,5,0
+8LLRaGJqZgSuDf9maW1ohb5G1SRqCuKbLX6vdUNWpFp2,103.04,0.51,5.1m,5100000,5,0
+2A3q7mZVYSEpYPA7ExXsydVXku9zFxcRRnFneUodHTcM,1.58,0.47,4.7m,4700000,7,5
+3JPYL9xEPFjefV3tccrUwhLzME1mMq2dQSDeDebgzQi6,96.2,0.43,4.3m,4300000,10,2
+4RrzL34AuT3gBjJ3SfNrnAXdno7UcSn4TVFtzrNqTvnJ,0.33,0.42,-1.3m,-1300000,2,4
+5MDqwpdyLfKCkZ4Fi2j1cQKKjnRy83Y8o7ntQfmrV3vr,67.31,0.42,4.2m,4200000,1,2
+8BBV4Ey5yXP2mXaMEX8NbzmDDqYFmtPFges1yd3R1NLe,72.81,0.42,4.2m,4200000,22,0
+DSpE8vAvzc1dSQWfZhJhMVVUeyFXcBXwY2C1W2NndAzh,37.59,0.4,4m,4000000,12,3
+3wPXQMoZtxzXPxD2f3vg2fKMTT9Sb2MzY8LNYJWa8926,294.97,0.39,3.9m,3900000,7,1
+E7Q7rydTxACkYmnvjwh9iHep75YWLvoPGrLJKfvGzwd3,4.22,0.39,3.9m,3900000,0,0
+5SqNcpuYj4Sx4X7nnN8gs3KVsTVM2SXCBvrXX6WrGFDz,0.003,0.39,3.9m,3900000,0,0
+HW2WU2i93vTFurADDyoq6dFNL7ai8CefKMQUBxXUhQqE,1600.65,0.37,3.7m,3700000,5,1
+HMBTg1sY5FX48BkAaazZ5Rw9z9rVGYt1Tk5dQTf67Bfc,2055.65,0.37,3.7m,3700000,4,0
+3UaYD5JrMKxFW2XbedL5sBrHYAqKDE7owPiAC4ykbhYw,22.44,0.35,3.5m,3500000,1,316
+3Zv6AQ73CMn5NXzTq2jUQvZK8giJqcMuBiWb2r6rXBGS,0.386,0.33,477.3k,477300,11,1
+HARSTZBkrrDJidcSanD7Frq8RBBbf7Pr4z4N2M9gUdTN,200.92,0.33,1.6m,1600000,6,3
+Ah2qhgMZMNQhWWHK9BwqagiYg95fxTnr15hPWWiiw8JR,11.02,0.33,3.3m,3300000,4,13
+5iRstdYzo1hUDLpQfNDq6hppq9MooXQMUsS4QqMR94KR,42.05,0.32,3.2m,3200000,4,0
+EK7dpWGeqqT8nArX4YueDdgB27rHu7FWUSSW5yWZae3A,0.099,0.32,3.2m,3200000,36,1
+9qdU4CpU9WSEXCzoNqDdQgyTNZwNrLJ2pZaAT6Rxntrc,0.992,0.31,17.4m,17400000,9,8
+C9Azhh87saDj884qmcpKhiewN2doby47sKb4hXG3Z9x6,0.127,0.31,3.1m,3100000,6,0
+Eswaek4iZKHaVuS2GyQ96DScmfcf9eHLxdVNNyHDtoFk,0.232,0.31,3.1m,3100000,3,1
+FJ3c71Ss393icGjf3NSkpXqpx6cYPnke8BWgpvcsLJ8Z,0,0.31,3.1m,3100000,0,0
+7S7zY1rUzgrAUXrLGkgXyza831By2jrvbratVZQ2aKTG,73.76,0.3,3m,3000000,1,0
+8cVNp3ThwTy92FYJap7P71qWVchtD9jFh51T1iLMFtvh,6.2,0.3,2.1m,2100000,7,3
+7ETnGnKiWE9v6QTw7J24yt6ZdzncfdhYRk6ai3wUZAd3,18.46,0.3,3m,3000000,12,5
+EKWkKPRGEQzTHW32j7i4hbtzoW6s3ZGAfL7T8RkSvrhJ,125.5,0.29,2.9m,2900000,8,2
+99qW3MYXLERDxvp5wW3N1yyUAjt5xczDyAHkMRuhv2KE,257.6,0.29,0,0,8,1
+7reT9xc4BDyMoCjPgriyLBWVgcUFBvrJSauPtZgYPLjn,27.74,0.29,2.9m,2900000,9,14
+7etQ5xGoWkYvW6EF4FfzzYKcxANxwnKGGsmcy71egdjM,0.364,0.29,2.9m,2900000,11,0
+4YpwpSHMKDHuLSAgZSsEjVvK6TKAEZdN9HydSXSugvVX,0.538,0.29,2.9m,2900000,16,0
+FnMRcmgkNQx624n9saxFSwTcu3KJ8JnAYnQWv9U6ErAT,0.476,0.28,2.8m,2800000,4,0
+3unQ5cYpF2pYjhDVBtFLtvWetwTgRsdD9x6JscTF1Daz,159.45,0.28,2.8m,2800000,7,0
+3vJaMQ1aZbmxmqwsWYrTx47mSnJ7pjSfXktuLQX3iedY,0.943,0.28,2.8m,2800000,8,0
+GnHGoekyvFPeETyWMyvYR5gxj8XyyHazXxvEabuwewZq,0.274,0.28,2.8m,2800000,5,0
+DNfuF1L62WWyW3pNakVkyGGFzVVhj4Yr52jSmdTyeBHm,925.69,0.27,2.7m,2700000,1,1
+Hvts7WUNA9k72kkVt2YP6z1R85U3C637XqfCNoaYSy3W,112.06,0.27,2.7m,2700000,4,4
+4nwMA19fChgbfSmhkvwTPjtkoYh863HP2cSY6NU7c1hL,0.093,0.26,2.6m,2600000,4,0
+CBrgnrNz49YipQqPxFRRtmfx7LdvinCzVZt4PkYJP1BM,0.515,0.26,2.6m,2600000,1,0
+AonM9DPqTibCE6kUSTMQLb7rGKap2RsAqsoFTxks82bS,816,0.26,2.6m,2600000,4,0
+Gc2aAiy14jT3cE9RZwEK8y36D49YB4eeVr3E9amgDn7f,0.49,0.25,2.5m,2500000,0,0
+3TS4gKNUUx1ZAKCQ374vH6ZBJchWJKKTp32LDmSFKzhQ,8.9,0.25,2.5m,2500000,3,1
+FrhQxjEKWbiRXVGbCZSoKxq6zPumiER8NixZvuu52nJv,0.26,0.25,2.5m,2500000,2,0
+84nbcr57yAoV8qUNmzVYAiNgZXsVk4x2U9TH3fXWaMVc,673.57,0.25,2.5m,2500000,2,1
+4tTERrTgX4oGTkY91inPE6ucchjP6njo99svPruoqJ86,0.391,0.25,2.5m,2500000,2,0
+68jBGAWcofe9NT6KTXxtcWg9LQvBXJmnTiDfFKfTaAoo,249.25,0.24,2.4m,2400000,13,6
+2BqLpxZKScj8ssfmzcLqiL646r4EQCpv2cDL5sj3QbWM,0.048,0.24,2.4m,2400000,0,0
+8c1pXxyQzbmUs6QpdDCZEQUmzSy2Kw3i7oQF8QL5ngLA,140.27,0.24,2.4m,2400000,7,13
+J84pvUHUXAiw2EXtqhTvXKZFWKhEQa69dUJbfmLiH8ZG,155.11,0.23,1m,1000000,9,3
+A7syvdnMPbRHJ3wmVS6dz4NuRFf9vxGDttvc71sfAwon,0.101,0.23,1.2m,1200000,1,1
+CBRvUc4qKowpE6k1qfsZyvTU37xtVncvk2xr7qAYPbiP,25.38,0.23,2.3m,2300000,1,0
+34KPE4ynkaXuAUbVHuvZ7RS64ffQpANwHcGqXbK2J79Z,1049.58,0.23,2.3m,2300000,2,1
+6fg77vTppRWZaQQaZhBqUtfu1PvRiCtWzoN8qF83fEbS,0.288,0.22,2.2m,2200000,2,0
+DiHVafGrsxRRg4ZEJVGvKQEWwv5vFHBQ9Ge37Vh2NFSf,0.231,0.22,2.2m,2200000,2,0
+HdxkiXqeN6qpK2YbG51W23QSWj3Yygc1eEk2zwmKJExp,131.21,0.21,2.1m,2100000,2,4
+BhhVhLVZkSd3aHDMd6ojTgtJtbgAdMCA9Xj8jL2GMXoL,1.46,0.21,2.1m,2100000,2,0
+BesrxaCQ9UjfyxAYgUD9mGH5sL4fCNWScw1hwiQ9nxtd,0.645,0.21,2.1m,2100000,2,0
+6WdUqC9QAwFXubnHMEMuAyY5CxxeTo6Dvj22dCo6FKfb,0.007,0.2,2m,2000000,0,0
+CzLLxkiPnhAhU7otpwdt6rxJ4AAjY3qcog17nGxG9j51,1.06,0.2,607.1k,607100,0,1
+CxEDAJLkdsj4nxSZS4TA1vNYppgPgVyxqEohQi7eQANv,45.66,0.2,2m,2000000,2,1
+AnEbfEc63qiyiiiCb6eKB8CHqvN4ogbxgiAQhtsA7fSp,0.277,0.2,2m,2000000,7,0
+5jUHsfpkr9Q21UdAiiaZjoYWBGZDULdx2jxUvQiRo4xE,258.89,0.2,2m,2000000,88,24
+Bhc8Th9aRQzZ8rSuc7rhXWLWgRDD6uMhAeQ2cPizgZ6w,24.64,0.2,2m,2000000,8,4
+4zHg8gdV9pZDL24eofW1Nb58M5cFTMrFwBVLz6S4ok1h,0.006,0.2,2m,2000000,0,0
+8mpkeLH9khvQrpzbbMPGEtD5U2vXks7yYaBLKsUWHoUR,165,0.2,2m,2000000,3,0
+9eb3mJR2nVWUTLgt6G1zSFfMuagbcbBSfG7483sEGUio,213.41,0.2,2m,2000000,1,1
+2emorioPzrp4KNRzRog5faPqokwPBynV2nKYirkNkgHN,2.48,0.19,1.9m,1900000,6,0
+Ay9wnuZCRTceZJuRpGZnuwYZuWdsviM4cMiCwFoSQiPH,158.79,0.19,1.9m,1900000,3,2
+CRVidEDtEUTYZisCxBZkpELzhQc9eauMLR3FWg74tReL,530.21,0.19,1.9m,1900000,35,5
+BfqHS3Qy8TUfUqYBUYckLC651SWRu3GLCcP98zayhku3,14.65,0.19,-438.3k,-438300,67,16
+J8JFN9q8S2y74FkTXQbjJeAZ92kSkNHhW94KvsVK5n8N,1753.42,0.18,1.8m,1800000,4,0
+6f4nWd3eehFUXEkznNgqtRKKKTVYhJPtKuG1U2Vn1neg,0.013,0.18,1.8m,1800000,5,0
+2ViipzAQaGccEYdq46aPWQ8oDQkLq4xW1362UUu4p9pr,22.46,0.18,1.8m,1800000,3,2

+ 56 - 0
src/library/nanlysis.sql

@@ -0,0 +1,56 @@
+-- List all transfers made on a given Solana wallet
+-- Author: Tuan
+-- Date: 20240916
+-- State: 
+-- Todo: 
+-- 0. BUG : these are not transfers but swaps !!!
+-- 1. categorize withdraw / deposit depending on to_owner / from_owner
+-- 2. pass the wallet address as a parameter
+
+ 
+WITH
+  transfers AS (
+    SELECT
+      block_time AS time,
+      action AS action,
+      amount / 1e6 AS amount,
+      -- token_version as version,
+    --   fee / 1e6 AS fee, 
+      from_owner AS from_owner,
+      to_owner AS to_owner,
+      from_token_account AS from_token_account,
+      to_token_account AS to_token_account,
+      token_mint_address AS token_address,
+      tx_id as transaction_id
+    FROM
+      tokens_solana.transfers
+  )
+SELECT
+  time,
+  action,
+  amount,
+--   fee,
+  tk.symbol,
+  p.symbol as symbol,
+  from_owner,
+  to_owner,
+  from_token_account,
+  to_token_account,
+  COALESCE(p.price, dp.median_price) as price, -- take the price or if it does not exist, the median price.
+  transaction_id,
+  --version,
+  token_address
+FROM
+  transfers
+  LEFT JOIN tokens_solana.fungible tk ON tk.token_mint_address = transfers.token_address
+  LEFT JOIN prices.usd p ON p.blockchain = 'solana' -- look for the price during a given minute
+  and toBase58 (p.contract_address) = transfers.token_address
+  and p.minute = date_trunc('minute', transfers.time)
+  LEFT JOIN dune.dune.result_dex_prices_solana dp -- look for the median price during that day as a backup, in case the price does not exist
+    ON dp.token_mint_address = transfers.token_address
+    and date_trunc('day',transfers.time) = dp.day
+    and dp.rolling_two_months_trades > 1000
+    and dp.total_holders_ever > 5000
+WHERE
+  to_owner = 'Ckc4FEhaykq6wnKVZnbvhJCJv95xWMznPkTzGNt5F7ab'
+  OR from_owner = 'Ckc4FEhaykq6wnKVZnbvhJCJv95xWMznPkTzGNt5F7ab'