Эх сурвалжийг харах

(running):分析total_ana

windowdog 5 сар өмнө
parent
commit
157b3b3591
100 өөрчлөгдсөн 56 нэмэгдсэн , 61 устгасан
  1. 44 35
      src/code/017_hanle_dalao_ori_pnl_gmgn.py
  2. 12 26
      src/code/018_analysis_dalao_pnl_gmgn.py
  3. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x00dfcf874dc69df0f9ec22a15b4887547dea85df.xlsx
  4. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x00e162af511181c1e81afe27a609a749b80de63e.xlsx
  5. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x01ad4c32feddd8a902e7f1342b758a2fd72516f5.xlsx
  6. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x01fa256bb7afb8c3f08e0b025befaed21f1b5ba0.xlsx
  7. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x043ea8ff33d420f72a66b493e11d3dfff062a7d9.xlsx
  8. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0464c9844b0cc2244e6a96d161544747b45cd54a.xlsx
  9. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x04bd8df63c65f7669591144d9371494a21abbcfc.xlsx
  10. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0564ef02d9a6c0cd54ea09a05d1075defdb44a20.xlsx
  11. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x05799507bbeb6f61ad508f5e1de73dcb66b5ab40.xlsx
  12. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x066460c76c656613e11d11ea59007567c68b8411.xlsx
  13. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x08135f113fd639287abca65ad77e4d55319a4444.xlsx
  14. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x08862e6b59cddc3f7d9ed2058a541753d5a9ae33.xlsx
  15. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x088cfcdb313a2cd0d1de497eda65125f05c212da.xlsx
  16. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0a29c3a8dd94a03ae086b6db5b38a80f02ade28c.xlsx
  17. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0a3608000f3d2d837b833c9dbd486a1d53d585c9.xlsx
  18. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0a4f66bc889a5e739af6987bc650143f3e178cb3.xlsx
  19. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0b333020a6e9fae9c582ad1cea73cae442ec275d.xlsx
  20. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0be71063c022bbf54b44ecd2edcadd394b66be0c.xlsx
  21. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0c349d9b92fbd172bbb5a17a9db0a673a6a10ad3.xlsx
  22. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0c615612248a221aa968f8a5c32bacfaadaff98a.xlsx
  23. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0cac9c3d7196f5bbd76fadcd771fb69b772c0f9d.xlsx
  24. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0cc7c799567b862cd17d7c82535f4318e49023b5.xlsx
  25. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0ddbe6edb7f5ad332ab8a7850093bdcc7d41132b.xlsx
  26. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0df481aaa715bb1de5bf4e3dbc7483b06009c7fa.xlsx
  27. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0f77981be89d62a353e2d906d94f15c74d27c5ec.xlsx
  28. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x100b4d1fbe0e5c4c96fb32aeb48a1c15af823e80.xlsx
  29. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1170b56b561e1ab2fd9dd46b59abb895da8efd15.xlsx
  30. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x11b6ccc31cb488f491e57d8f2d4e1b549a2442a4.xlsx
  31. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x11c08d39fc51b7d2a712888e856dfffc67c6f4f4.xlsx
  32. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x120051a72966950b8ce12eb5496b5d1eeec1541b.xlsx
  33. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1215ad019913cfa5b848b0a89e1a8d200d78d353.xlsx
  34. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1297ad486549a430d59d9d5f99ed7c216b6e77dd.xlsx
  35. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x14a50da15db91c65d1571ad33f81b3a7647d2177.xlsx
  36. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x156736e096d7e100b82952d8c7a15cf0d96dc1c3.xlsx
  37. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x163af036779e28b7e5b8d5f08fd6f3c146ee2c29.xlsx
  38. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x165ae6d39e979b7149c2f78e7bcbb0e6d84fb2b1.xlsx
  39. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x181b22bdb45ca6f811aa138bdcd17769db7096cf.xlsx
  40. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x19f4d695952cef25328686ac7db05bddaba81e1e.xlsx
  41. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1a5de2e9232c04fa895b7161b59f0a64e9d90abd.xlsx
  42. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1b0841a3122e99631d9df7e4a0a5ec2d2a233b74.xlsx
  43. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1baae49a9bb39966dbb74274d00cabaa01ca1aa0.xlsx
  44. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1bb9c7911b3998332b710a9d47e4a7bccdd66911.xlsx
  45. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1c03c92dc0b7dfadf1910136eea3b452f0bb56df.xlsx
  46. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1c46e6265afb3ae5f7ba5b3e81f47520fe442d4f.xlsx
  47. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1c5a0844ccde6da119b1bf623db7c00fcfe9b79f.xlsx
  48. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1e1d82a2c4907cfbe95a6524376faf77e676bbf5.xlsx
  49. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1f6feab7be9d63039241ac61bca7ff6788303104.xlsx
  50. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x207f43988fbb8487b76a77d40a535c5d90b479d8.xlsx
  51. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x209710e00be3a5ecd35014834e021836a2213195.xlsx
  52. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x20cf6f56ef057157ab8a48c82ed97258148c403c.xlsx
  53. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x22fcd070631ab51942af7a8d6eb1c62572758861.xlsx
  54. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x236bcf477d204de10abc2e652e6a8bb68ee8e2ae.xlsx
  55. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x236d03c733b989e17e1235f33302c0502edf30fd.xlsx
  56. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x245668df945eb26d06e427b61fe9c33bcf9abead.xlsx
  57. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x249b9421d1872ce1b9549a4e0570d85be22b5805.xlsx
  58. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x256de981ce9a8599cc185caaed7d066f80f81c3e.xlsx
  59. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x25b7b76a48d1769d532c83d4d380dddd5c3acad1.xlsx
  60. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x260036984828f09b9d37cfa03c832088dfe155fb.xlsx
  61. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2614a8f53677cd1a5eb1e21a00627f03e32f9c91.xlsx
  62. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x274e174d637eb2626e6199956a30e90e2d2e1d57.xlsx
  63. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x275a0ba45c7f133211809e1cdd674fa07011eeed.xlsx
  64. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2794f42b289c7141120c80a7d83b5433d22d9a26.xlsx
  65. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x27bb84a50967e1a597ab1a35dcf3955d44e35a1d.xlsx
  66. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x29a0ea6f6937639661b054c56af8fe6045cfc09e.xlsx
  67. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x29beed2b0ce5bc3b5a18cf32035007fc0174bc61.xlsx
  68. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x29fa250e25d68953fec3a55ffdeb41eccac1e0fc.xlsx
  69. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2a723ff76dc1a1049beaff3c3646f63c99cdfff1.xlsx
  70. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2a7739149415cd937bf554b701ae3cdf2085780a.xlsx
  71. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2b68ecd0c071a5607d504301cf9b1abb49e91cd3.xlsx
  72. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2c4ebd1eea45fabb32d85e799cc7859edfeb75eb.xlsx
  73. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2cef7f1b603c8e8314a05ede87d66fb716be288a.xlsx
  74. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2d2d15710beef5b347f9f4e1def0d9d47673ea87.xlsx
  75. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2d8aed38fc8efd32e3717353e524d1069def4855.xlsx
  76. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2da6597f7251d3bdc82e92cb423054b514e7f2ed.xlsx
  77. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2e47d1c100a69ae37a42c058df7c8fd3f66a37a2.xlsx
  78. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2e9431a49407c9026343b1ce3d40a70952ec07d3.xlsx
  79. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2ef91890af7a57be4ed4349621067ccabdd5091b.xlsx
  80. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2f2f942dfb05dd780f92400f02a88f66099e2904.xlsx
  81. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2f8c0b778c98489cb21cddf5199ea06b252c4e34.xlsx
  82. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2fca3a05e81186929e390932f1986cd7abb5801c.xlsx
  83. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x307dcd884970de4790909c37a36cbfa85590bff4.xlsx
  84. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x312fb697fc2f31cc4cb2677d8650b3cf2ed5e16e.xlsx
  85. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x3229378620b8318f3012fb32d63363e5d5b22947.xlsx
  86. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x342bd7fa1e6f91f95552220765fc67554a7b7c2a.xlsx
  87. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x34c68342787021b1ed8ff39a14cdc12491490a2a.xlsx
  88. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a0.xlsx
  89. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x35731ee491c460a9add09255257face7cce5c452.xlsx
  90. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x35a9ffdafd62bcd7047fa8ceb734ca647a99dd43.xlsx
  91. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x35f295a000c37215063e9b4db8b4ffaa7ee553fd.xlsx
  92. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x361e59f6eb1e6a23f171b1dd3264ef47c5410f3f.xlsx
  93. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x3639c83973f5945e3b79f86c644c59fb87943615.xlsx
  94. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x368b7b723704402e3675af47f018c12293b525ac.xlsx
  95. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x3b66d1f25f38b615bbce3bdeb8c8f9e76fd92882.xlsx
  96. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x3bffc96cbe2c537ee65d665e7f6de314f7911663.xlsx
  97. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x3c48614a3ce39f6c3995e8567864fbbdda4d0d95.xlsx
  98. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x3d056fbea4e76d612e3e03f1d1d9d29ddc23bbdf.xlsx
  99. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x3d8a6990a98910fe87d007c78a1d632b91dc7ca9.xlsx
  100. BIN
      src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x3de7fac0439b735ef7d5f6468e7e0a95c7f372f5.xlsx

+ 44 - 35
src/code/017_hanle_dalao_ori_pnl_gmgn.py

@@ -3,7 +3,7 @@ from base_class import BaseVariableFunction
 from base_class import *
 baseclass = BaseVariableFunction(__file__)
 
-baseclass.makedirpath(baseclass.dalao_ori_pnl_gmgn_path)
+baseclass.makedirpath(baseclass.dalao_pnl_gmgn_path)
 
 old_print = print
  
@@ -27,7 +27,18 @@ def makescreenurl( urlname,urlparam):
 # weth 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
 # USDT 0xdac17f958d2ee523a2206206994597c13d831ec7
 # USDC 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
-
+def get_temp_dalao_pnl(temp_df ,str_dalaoaddress ):
+    
+    temp_df["isnengen"] = -1
+    temp_df["beizhu"] = -1
+    temp_df["definedurl"] = temp_df.apply(lambda ser: makescreenurl("https://www.defined.fi/eth/" ,f"{ser['tokenaddress']}?maker={str_dalaoaddress}")  , axis=1)
+    temp_df["dexurl"] = temp_df.apply(lambda ser: makescreenurl( f"https://dexscreener.com/ethereum/",f"{ser['tokenaddress']}?maker={str_dalaoaddress}")  , axis=1)
+    
+
+
+    temp_df.to_excel(baseclass.dalao_pnl_gmgn_path / f"temp_gmgn_pnl_{str_dalaoaddress}.xlsx", index=False )
+    
+    
 arr_exclude_tokenaddress = [
                         "0x0000000000000000000000000000000000000000",
                         "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2" ,
@@ -46,58 +57,56 @@ def hanle_dalao_ori_pnl_gmgn(arr_str_dalaoaddress):
                         dalao_df = pd.read_csv(baseclass.dalao_ori_pnl_gmgn_path /
                                 f"ori_gmgn_pnl_{str_dalaoaddress }.csv", dtype= object)
                         
-                        dalao_df = pd.read_csv(baseclass.dalao_ori_pnl_gmgn_path /
-                                f"ori_gmgn_pnl_{str_dalaoaddress }.csv", dtype= object)
-
-                        
 
                         dalao_df  =dalao_df[~ dalao_df["tokenaddress"].isin( arr_exclude_tokenaddress )].reset_index(drop=True)
+                        
                         dalao_df.to_csv(baseclass.dalao_ori_pnl_gmgn_path /
                                 f"ori_gmgn_pnl_{str_dalaoaddress }.csv", index=False)
-                        if len(dalao_df)==0:
-                                continue
                         
+                        
+                        
+
 
-                        arr_last_active =   dalao_df["last_active"].tolist()
+                        arr_last_active = dalao_df["last_active"].tolist()
                         for idx , str_last_active in enumerate(arr_last_active ):
                                 if "min"   in str_last_active  or  "h" in str_last_active or  "s" in str_last_active:
                                         arr_last_active[idx] = "0"
                                 elif "d" in str_last_active:
                                         arr_last_active[idx] = str_last_active.replace("d","")
-                        dalao_df["last_active"] = arr_last_active
-        
-                
+                                dalao_df["last_active"] = arr_last_active
+                        dalao_df['30d_txns_buy'] = dalao_df['30d_txns_buy'].str.replace(',', '')
+                        dalao_df['30d_txns_sell'] = dalao_df['30d_txns_sell'].str.replace(',', '')
+                        dalao_df['profit_percent'] = dalao_df['profit_percent'].str.replace('>', '')
                         dalao_df['30d_txns_buy'] = dalao_df['30d_txns_buy'].str.replace("K", '000', regex=True)
                         dalao_df['30d_txns_sell'] = dalao_df['30d_txns_sell'].str.replace("K", '000', regex=True)
-                        
                         dalao_df['30d_txns_buy'] = dalao_df['30d_txns_buy'].str.replace(r'[,\.]', '', regex=True)
-
                         dalao_df['30d_txns_sell'] = dalao_df['30d_txns_sell'].str.replace(r'[,\.]', '', regex=True)
+        
+                        dalao_df = dalao_df.astype({
+                                "last_active" :  int ,
+                                "profit_eth" :  float ,
+                                "profit_percent" :  float ,
+                                "buy_eth" :  float ,
+                                "sell_eth" : float  ,
+                                "30d_txns_buy" :  int ,
+                                "30d_txns_sell":  int ,
                         
-                        dalao_df =dalao_df.astype({
-                        
-                                "buy_eth":float,
-                                "profit_eth":float,
-                                "30d_txns_buy":int,
-                                "30d_txns_sell":int,
-                                
                         })
-
-                        dalao_df["profit_percent"] =     dalao_df["profit_eth"] /   dalao_df["buy_eth"]
-                    
-                        dalao_df["profit_percent"] =        dalao_df["profit_percent"].round(2)
-                
-                        dalao_df["isnengen"] = -1
-                        
-                        dalao_df["beizhu"] = -1
-                
-                        dalao_df["dexurl"] = dalao_df.apply(lambda ser: makescreenurl( f"https://dexscreener.com/eth/",f"{ser['tokenaddress']}?maker={str_dalaoaddress}")  , axis=1)
-                        dalao_df["definedurl"] = dalao_df.apply(lambda ser: makescreenurl("https://www.defined.fi/eth/" ,ser['tokenaddress'] )  , axis=1)
-
         
         
-                        dalao_df.to_excel(baseclass.dalao_ori_pnl_gmgn_path /
-                                f"ori_gmgn_pnl_{str_dalaoaddress}.xlsx", index=False )
+                        dalao_df=dalao_df[dalao_df["profit_eth"] !=0].reset_index(drop=True)
+                        if len(dalao_df)==0:
+                                continue
+                        
+                        
+                        temp_df = dalao_df.copy()
+                        get_temp_dalao_pnl(temp_df=temp_df ,str_dalaoaddress=str_dalaoaddress)
+                        
+                        dalao_df.to_csv( baseclass.dalao_pnl_gmgn_path / f"gmgn_pnl_{str_dalaoaddress}.csv",index  = False )
+                        
+                        
+        
+             
                 except Exception as e:
                         print(f"str_dalaoaddress= {str_dalaoaddress}",e)
                         raise 

+ 12 - 26
src/code/018_analysis_dalao_pnl_gmgn.py

@@ -10,6 +10,10 @@ def timestamped_print(*args, **kwargs):
     old_print(datetime.datetime.utcnow().replace(
         microsecond=0), *args, **kwargs)
 
+def makescreenurl( urlname,urlparam):
+    # pairAddress = series[address_str]
+    urlname = urlname + urlparam
+    return '=HYPERLINK("{}","{}")'.format(urlname, urlname)
 
 print = timestamped_print
 print('\n'*5)
@@ -18,6 +22,7 @@ print(f"{'{:<6}'.format('enter')}  ----------------NOTE-----------NOTE----------
 baseclass.makedirpath(  baseclass.dalao_pnl_gmgn_path)
 baseclass.makedirpath(baseclass.dalao_total_ana_gmgn_path)
 
+
  
 def get_ana_data_lastdays( df,    intervaldays=30):
     if len(df) == 0:
@@ -86,38 +91,21 @@ def get_ana_data_lastdays( df,    intervaldays=30):
     )
 
 
+  
 def main():
     global arr_totalAnalysis
     for str_dalaoaddress_idx in range(0, len(arr_str_dalaoaddress)):
         
         str_dalaoaddress= arr_str_dalaoaddress[str_dalaoaddress_idx]
         print(f"enter str_dalaoaddress= {str_dalaoaddress}")
-        if not (baseclass.dalao_ori_pnl_gmgn_path / f"ori_gmgn_pnl_{str_dalaoaddress}.csv").exists():
+        if not (baseclass.dalao_pnl_gmgn_path / f"gmgn_pnl_{str_dalaoaddress}.csv").exists():
             continue
         
-        
-        cur_df = pd.read_csv( baseclass.dalao_ori_pnl_gmgn_path / f"ori_gmgn_pnl_{str_dalaoaddress}.csv",dtype=object)
+        cur_df = pd.read_csv( baseclass.dalao_pnl_gmgn_path / f"gmgn_pnl_{str_dalaoaddress}.csv",dtype=object)
         if len(cur_df)==0:
             continue
-        arr_last_active =   cur_df["last_active"].tolist()
-        for idx , str_last_active in enumerate(arr_last_active ):
-            if "min"   in str_last_active  or  "h" in str_last_active or  "s" in str_last_active:
-                arr_last_active[idx] = "0"
-            elif "d" in str_last_active:
-                arr_last_active[idx] = str_last_active.replace("d","")
-        cur_df["last_active"] = arr_last_active
-        cur_df['30d_txns_buy'] = cur_df['30d_txns_buy'].str.replace(',', '')
-        cur_df['30d_txns_sell'] = cur_df['30d_txns_sell'].str.replace(',', '')
-        cur_df['profit_percent'] = cur_df['profit_percent'].str.replace('>', '')
-        
-        cur_df['30d_txns_buy'] = cur_df['30d_txns_buy'].str.replace("K", '000', regex=True)
-        cur_df['30d_txns_sell'] = cur_df['30d_txns_sell'].str.replace("K", '000', regex=True)
         
-        cur_df['30d_txns_buy'] = cur_df['30d_txns_buy'].str.replace(r'[,\.]', '', regex=True)
-        
-        cur_df['30d_txns_sell'] = cur_df['30d_txns_sell'].str.replace(r'[,\.]', '', regex=True)
-            
-
+ 
         
         cur_df = cur_df.astype({
             "last_active" :  int ,
@@ -129,12 +117,10 @@ def main():
             "30d_txns_sell":  int ,
             
         })
+                
         cur_df = cur_df[ cur_df["last_active"]<=30].reset_index(drop=True)
-
-        cur_df=cur_df[cur_df["profit_eth"] !=0].reset_index(drop=True)
         cur_df=cur_df[cur_df["30d_txns_buy"] !=0].reset_index(drop=True)
-        
-        cur_df.to_csv( baseclass.dalao_pnl_gmgn_path / f"gmgn_pnl_{str_dalaoaddress}.csv",index  = False )
+        # cur_df.to_csv( baseclass.dalao_pnl_gmgn_path / f"gmgn_pnl_{str_dalaoaddress}.csv",index  = False )
         
         if len(cur_df)==0:
             continue
@@ -188,7 +174,7 @@ def main():
             _30d_earn_per_pos0_pos100,
             _30d_earn_per_pos100_posmax,
             (_30d_earn_per_pos100_posmax -_30d_earn_per_neg100_neg50 )/ _30d_trans if _30d_trans!=0 else 0,
-            (_30d_earn_per_pos400_posmax *2 +    _30d_earn_per_pos100_posmax - _30d_earn_per_pos400_posmax  -_30d_earn_per_neg100_neg50  ) / _30d_trans if _30d_trans!=0 else 0,
+            (_30d_earn_per_pos400_posmax *2 + _30d_earn_per_pos100_posmax - _30d_earn_per_pos400_posmax  -_30d_earn_per_neg100_neg50  ) / _30d_trans if _30d_trans!=0 else 0,
 
 
     

BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x00dfcf874dc69df0f9ec22a15b4887547dea85df.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x00e162af511181c1e81afe27a609a749b80de63e.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x01ad4c32feddd8a902e7f1342b758a2fd72516f5.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x01fa256bb7afb8c3f08e0b025befaed21f1b5ba0.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x043ea8ff33d420f72a66b493e11d3dfff062a7d9.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0464c9844b0cc2244e6a96d161544747b45cd54a.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x04bd8df63c65f7669591144d9371494a21abbcfc.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0564ef02d9a6c0cd54ea09a05d1075defdb44a20.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x05799507bbeb6f61ad508f5e1de73dcb66b5ab40.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x066460c76c656613e11d11ea59007567c68b8411.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x08135f113fd639287abca65ad77e4d55319a4444.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x08862e6b59cddc3f7d9ed2058a541753d5a9ae33.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x088cfcdb313a2cd0d1de497eda65125f05c212da.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0a29c3a8dd94a03ae086b6db5b38a80f02ade28c.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0a3608000f3d2d837b833c9dbd486a1d53d585c9.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0a4f66bc889a5e739af6987bc650143f3e178cb3.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0b333020a6e9fae9c582ad1cea73cae442ec275d.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0be71063c022bbf54b44ecd2edcadd394b66be0c.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0c349d9b92fbd172bbb5a17a9db0a673a6a10ad3.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0c615612248a221aa968f8a5c32bacfaadaff98a.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0cac9c3d7196f5bbd76fadcd771fb69b772c0f9d.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0cc7c799567b862cd17d7c82535f4318e49023b5.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0ddbe6edb7f5ad332ab8a7850093bdcc7d41132b.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0df481aaa715bb1de5bf4e3dbc7483b06009c7fa.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x0f77981be89d62a353e2d906d94f15c74d27c5ec.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x100b4d1fbe0e5c4c96fb32aeb48a1c15af823e80.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1170b56b561e1ab2fd9dd46b59abb895da8efd15.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x11b6ccc31cb488f491e57d8f2d4e1b549a2442a4.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x11c08d39fc51b7d2a712888e856dfffc67c6f4f4.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x120051a72966950b8ce12eb5496b5d1eeec1541b.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1215ad019913cfa5b848b0a89e1a8d200d78d353.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1297ad486549a430d59d9d5f99ed7c216b6e77dd.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x14a50da15db91c65d1571ad33f81b3a7647d2177.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x156736e096d7e100b82952d8c7a15cf0d96dc1c3.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x163af036779e28b7e5b8d5f08fd6f3c146ee2c29.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x165ae6d39e979b7149c2f78e7bcbb0e6d84fb2b1.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x181b22bdb45ca6f811aa138bdcd17769db7096cf.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x19f4d695952cef25328686ac7db05bddaba81e1e.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1a5de2e9232c04fa895b7161b59f0a64e9d90abd.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1b0841a3122e99631d9df7e4a0a5ec2d2a233b74.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1baae49a9bb39966dbb74274d00cabaa01ca1aa0.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1bb9c7911b3998332b710a9d47e4a7bccdd66911.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1c03c92dc0b7dfadf1910136eea3b452f0bb56df.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1c46e6265afb3ae5f7ba5b3e81f47520fe442d4f.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1c5a0844ccde6da119b1bf623db7c00fcfe9b79f.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1e1d82a2c4907cfbe95a6524376faf77e676bbf5.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x1f6feab7be9d63039241ac61bca7ff6788303104.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x207f43988fbb8487b76a77d40a535c5d90b479d8.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x209710e00be3a5ecd35014834e021836a2213195.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x20cf6f56ef057157ab8a48c82ed97258148c403c.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x22fcd070631ab51942af7a8d6eb1c62572758861.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x236bcf477d204de10abc2e652e6a8bb68ee8e2ae.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x236d03c733b989e17e1235f33302c0502edf30fd.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x245668df945eb26d06e427b61fe9c33bcf9abead.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x249b9421d1872ce1b9549a4e0570d85be22b5805.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x256de981ce9a8599cc185caaed7d066f80f81c3e.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x25b7b76a48d1769d532c83d4d380dddd5c3acad1.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x260036984828f09b9d37cfa03c832088dfe155fb.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2614a8f53677cd1a5eb1e21a00627f03e32f9c91.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x274e174d637eb2626e6199956a30e90e2d2e1d57.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x275a0ba45c7f133211809e1cdd674fa07011eeed.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2794f42b289c7141120c80a7d83b5433d22d9a26.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x27bb84a50967e1a597ab1a35dcf3955d44e35a1d.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x29a0ea6f6937639661b054c56af8fe6045cfc09e.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x29beed2b0ce5bc3b5a18cf32035007fc0174bc61.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x29fa250e25d68953fec3a55ffdeb41eccac1e0fc.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2a723ff76dc1a1049beaff3c3646f63c99cdfff1.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2a7739149415cd937bf554b701ae3cdf2085780a.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2b68ecd0c071a5607d504301cf9b1abb49e91cd3.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2c4ebd1eea45fabb32d85e799cc7859edfeb75eb.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2cef7f1b603c8e8314a05ede87d66fb716be288a.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2d2d15710beef5b347f9f4e1def0d9d47673ea87.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2d8aed38fc8efd32e3717353e524d1069def4855.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2da6597f7251d3bdc82e92cb423054b514e7f2ed.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2e47d1c100a69ae37a42c058df7c8fd3f66a37a2.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2e9431a49407c9026343b1ce3d40a70952ec07d3.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2ef91890af7a57be4ed4349621067ccabdd5091b.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2f2f942dfb05dd780f92400f02a88f66099e2904.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2f8c0b778c98489cb21cddf5199ea06b252c4e34.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x2fca3a05e81186929e390932f1986cd7abb5801c.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x307dcd884970de4790909c37a36cbfa85590bff4.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x312fb697fc2f31cc4cb2677d8650b3cf2ed5e16e.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x3229378620b8318f3012fb32d63363e5d5b22947.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x342bd7fa1e6f91f95552220765fc67554a7b7c2a.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x34c68342787021b1ed8ff39a14cdc12491490a2a.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a0.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x35731ee491c460a9add09255257face7cce5c452.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x35a9ffdafd62bcd7047fa8ceb734ca647a99dd43.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x35f295a000c37215063e9b4db8b4ffaa7ee553fd.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x361e59f6eb1e6a23f171b1dd3264ef47c5410f3f.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x3639c83973f5945e3b79f86c644c59fb87943615.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x368b7b723704402e3675af47f018c12293b525ac.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x3b66d1f25f38b615bbce3bdeb8c8f9e76fd92882.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x3bffc96cbe2c537ee65d665e7f6de314f7911663.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x3c48614a3ce39f6c3995e8567864fbbdda4d0d95.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x3d056fbea4e76d612e3e03f1d1d9d29ddc23bbdf.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x3d8a6990a98910fe87d007c78a1d632b91dc7ca9.xlsx


BIN
src/librarydata/dalao_ori_pnl_gmgn/ori_gmgn_pnl_0x3de7fac0439b735ef7d5f6468e7e0a95c7f372f5.xlsx


Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно