ddx-python 1.0.5__cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. ddx/.gitignore +1 -0
  2. ddx/__init__.py +58 -0
  3. ddx/_rust/__init__.pyi +2009 -0
  4. ddx/_rust/common/__init__.pyi +17 -0
  5. ddx/_rust/common/accounting.pyi +6 -0
  6. ddx/_rust/common/enums.pyi +3 -0
  7. ddx/_rust/common/requests/__init__.pyi +21 -0
  8. ddx/_rust/common/requests/intents.pyi +19 -0
  9. ddx/_rust/common/specs.pyi +17 -0
  10. ddx/_rust/common/state/__init__.pyi +41 -0
  11. ddx/_rust/common/state/keys.pyi +29 -0
  12. ddx/_rust/common/transactions.pyi +7 -0
  13. ddx/_rust/decimal.pyi +3 -0
  14. ddx/_rust/h256.pyi +3 -0
  15. ddx/_rust.abi3.so +0 -0
  16. ddx/app_config/ethereum/addresses.json +541 -0
  17. ddx/auditor/README.md +32 -0
  18. ddx/auditor/__init__.py +0 -0
  19. ddx/auditor/auditor_driver.py +1034 -0
  20. ddx/auditor/websocket_message.py +54 -0
  21. ddx/common/__init__.py +0 -0
  22. ddx/common/epoch_params.py +28 -0
  23. ddx/common/fill_context.py +144 -0
  24. ddx/common/item_utils.py +38 -0
  25. ddx/common/logging.py +184 -0
  26. ddx/common/market_specs.py +64 -0
  27. ddx/common/trade_mining_params.py +19 -0
  28. ddx/common/transaction_utils.py +85 -0
  29. ddx/common/transactions/__init__.py +0 -0
  30. ddx/common/transactions/advance_epoch.py +91 -0
  31. ddx/common/transactions/advance_settlement_epoch.py +63 -0
  32. ddx/common/transactions/all_price_checkpoints.py +84 -0
  33. ddx/common/transactions/cancel.py +76 -0
  34. ddx/common/transactions/cancel_all.py +88 -0
  35. ddx/common/transactions/complete_fill.py +103 -0
  36. ddx/common/transactions/disaster_recovery.py +97 -0
  37. ddx/common/transactions/event.py +48 -0
  38. ddx/common/transactions/fee_distribution.py +119 -0
  39. ddx/common/transactions/funding.py +294 -0
  40. ddx/common/transactions/futures_expiry.py +123 -0
  41. ddx/common/transactions/genesis.py +108 -0
  42. ddx/common/transactions/inner/__init__.py +0 -0
  43. ddx/common/transactions/inner/adl_outcome.py +25 -0
  44. ddx/common/transactions/inner/fill.py +227 -0
  45. ddx/common/transactions/inner/liquidated_position.py +41 -0
  46. ddx/common/transactions/inner/liquidation_entry.py +41 -0
  47. ddx/common/transactions/inner/liquidation_fill.py +118 -0
  48. ddx/common/transactions/inner/outcome.py +32 -0
  49. ddx/common/transactions/inner/trade_fill.py +125 -0
  50. ddx/common/transactions/insurance_fund_update.py +142 -0
  51. ddx/common/transactions/insurance_fund_withdraw.py +99 -0
  52. ddx/common/transactions/liquidation.py +357 -0
  53. ddx/common/transactions/partial_fill.py +125 -0
  54. ddx/common/transactions/pnl_realization.py +122 -0
  55. ddx/common/transactions/post.py +72 -0
  56. ddx/common/transactions/post_order.py +95 -0
  57. ddx/common/transactions/price_checkpoint.py +96 -0
  58. ddx/common/transactions/signer_registered.py +62 -0
  59. ddx/common/transactions/specs_update.py +61 -0
  60. ddx/common/transactions/strategy_update.py +156 -0
  61. ddx/common/transactions/tradable_product_update.py +98 -0
  62. ddx/common/transactions/trade_mining.py +147 -0
  63. ddx/common/transactions/trader_update.py +105 -0
  64. ddx/common/transactions/withdraw.py +91 -0
  65. ddx/common/transactions/withdraw_ddx.py +74 -0
  66. ddx/common/utils.py +176 -0
  67. ddx/config.py +17 -0
  68. ddx/derivadex_client.py +254 -0
  69. ddx/py.typed +0 -0
  70. ddx/realtime_client/__init__.py +2 -0
  71. ddx/realtime_client/config.py +2 -0
  72. ddx/realtime_client/logs/pytest.log +0 -0
  73. ddx/realtime_client/models/__init__.py +683 -0
  74. ddx/realtime_client/realtime_client.py +567 -0
  75. ddx/rest_client/__init__.py +0 -0
  76. ddx/rest_client/clients/__init__.py +0 -0
  77. ddx/rest_client/clients/base_client.py +60 -0
  78. ddx/rest_client/clients/market_client.py +1241 -0
  79. ddx/rest_client/clients/on_chain_client.py +432 -0
  80. ddx/rest_client/clients/signed_client.py +301 -0
  81. ddx/rest_client/clients/system_client.py +843 -0
  82. ddx/rest_client/clients/trade_client.py +335 -0
  83. ddx/rest_client/constants/__init__.py +0 -0
  84. ddx/rest_client/constants/endpoints.py +67 -0
  85. ddx/rest_client/contracts/__init__.py +0 -0
  86. ddx/rest_client/contracts/checkpoint/__init__.py +560 -0
  87. ddx/rest_client/contracts/ddx/__init__.py +1949 -0
  88. ddx/rest_client/contracts/dummy_token/__init__.py +1014 -0
  89. ddx/rest_client/contracts/i_collateral/__init__.py +1414 -0
  90. ddx/rest_client/contracts/i_stake/__init__.py +696 -0
  91. ddx/rest_client/exceptions/__init__.py +0 -0
  92. ddx/rest_client/exceptions/exceptions.py +32 -0
  93. ddx/rest_client/http/__init__.py +0 -0
  94. ddx/rest_client/http/http_client.py +305 -0
  95. ddx/rest_client/models/__init__.py +0 -0
  96. ddx/rest_client/models/market.py +683 -0
  97. ddx/rest_client/models/signed.py +60 -0
  98. ddx/rest_client/models/system.py +390 -0
  99. ddx/rest_client/models/trade.py +140 -0
  100. ddx/rest_client/utils/__init__.py +0 -0
  101. ddx/rest_client/utils/encryption_utils.py +26 -0
  102. ddx_python-1.0.5.dist-info/METADATA +63 -0
  103. ddx_python-1.0.5.dist-info/RECORD +104 -0
  104. ddx_python-1.0.5.dist-info/WHEEL +4 -0
@@ -0,0 +1,104 @@
1
+ ddx/.gitignore,sha256=MtrjBS8zHuNNYo71NXCbMBJZpF33x1IsTTXc9Jhz8As,13
2
+ ddx/__init__.py,sha256=gsWd-pZ0mAXywFi2_kiQhTXRSTnOkYP-vzE77wv08x0,2160
3
+ ddx/_rust.abi3.so,sha256=WzV09Uk6yjsbXR4ijlLQE3SZobfQ5GuP8dICRrEKm3I,5592024
4
+ ddx/_rust/__init__.pyi,sha256=eKyS6QckEWr_cOTl0qWIcnOd8AXaRI1E7sGi6aLHPxo,70445
5
+ ddx/_rust/common/__init__.pyi,sha256=TYXrt0wIF1d3EjAirZ8--bN-Ytem1VOJKEb20pB171I,312
6
+ ddx/_rust/common/accounting.pyi,sha256=zZOZxKfWkCqclfsyAX0klpxFTrGMIlue-jTg7yeZiks,109
7
+ ddx/_rust/common/enums.pyi,sha256=q6PJqN7AOsPmn6KkKIDyhUQ2j_ktujUw52eCQHEndoE,162
8
+ ddx/_rust/common/requests/__init__.pyi,sha256=GwoTrx_EveqSYwDDPfZRgI97lrg-Bz8o-nC5ikmWH3g,379
9
+ ddx/_rust/common/requests/intents.pyi,sha256=ARp-Lxt4nxssXzbo3M9OeTYjvRwq9FIMAm-LoFtewmo,353
10
+ ddx/_rust/common/specs.pyi,sha256=02U97EElXIm1BlObPcl1DQRKeRCDqmZEfXGXpORG4rY,290
11
+ ddx/_rust/common/state/__init__.pyi,sha256=CfOOyYj6hr7lmK-nxpPhRrhKVoqyzzpAcHHVzH6e7tY,657
12
+ ddx/_rust/common/state/keys.pyi,sha256=L8gnM3ggg-6XvEl6Aoh7S9clin47Za7ixAdfdZ-Z1DY,511
13
+ ddx/_rust/common/transactions.pyi,sha256=vbPfBXr-qsJk7mTplC0suwJGWaF-NA1AQ_EpBK3e7pY,173
14
+ ddx/_rust/decimal.pyi,sha256=9tatNJwrA_25tcGo9mBTE05hWqXyFY1ekEoqBdz_r5M,75
15
+ ddx/_rust/h256.pyi,sha256=1VYGW123W_j66pfAcFWUQN-u_QmEZr9JNVhGWDOlYCk,63
16
+ ddx/app_config/ethereum/addresses.json,sha256=-olt22ooED2VJ7Gq8Pwf71OZqE8VqmidYAVCZW-vxCM,33355
17
+ ddx/auditor/README.md,sha256=bNunwexqp4phZS-fa1uejGt0lMaw1gO27KiWGYFNQO4,1118
18
+ ddx/auditor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
+ ddx/auditor/auditor_driver.py,sha256=BFTPn9BHB0wF3cLOTGnCnQoXp3MSEUWP6rOZn2gUzXo,39115
20
+ ddx/auditor/websocket_message.py,sha256=5eDEUV1v-TaPAOdyZ5YTd28mmP_GuUnkLPw7dYUlg2g,1081
21
+ ddx/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
+ ddx/common/epoch_params.py,sha256=xr6rwnjigZ5liOgzRJ3nTZJDw9DlP1gtKDYuMD61UTo,724
23
+ ddx/common/fill_context.py,sha256=FhqOrON3PCQKUNxyP7K6gUtrHwixj60kFfkxKiDyIq8,5295
24
+ ddx/common/item_utils.py,sha256=VfN7FCeHv07Hf7rpPEkFOjF6D6oQk6v2VFkq31Kdvao,1079
25
+ ddx/common/logging.py,sha256=VTi1PhOwyTHz-HfWFpxMEYz6oI3GCni2UIOBeadhJtI,5348
26
+ ddx/common/market_specs.py,sha256=wGmw_XU-MfCV-bUAUOsBs9_D4Jbys9JrN2TUu1ohfZU,2206
27
+ ddx/common/trade_mining_params.py,sha256=hulKhzmDPJNOJVRlUjPwfuGBjF2bIZ7xq8iovEgZTrc,561
28
+ ddx/common/transaction_utils.py,sha256=uwkq18VEmflSXJtBz4tgB9PVIZcEEKjgs2fY1fNe_Es,2657
29
+ ddx/common/transactions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
+ ddx/common/transactions/advance_epoch.py,sha256=I9K9Z_4YBuzY5eU1bS3_AX2KbQm630PCVvdYBFBFBpk,3059
31
+ ddx/common/transactions/advance_settlement_epoch.py,sha256=MCb259TMuuUb23iVv8BoYK6lBIQsxGofetU8gvQWMto,1579
32
+ ddx/common/transactions/all_price_checkpoints.py,sha256=GIgf-A9fdr83rKOvoGvIFEMSbabP8znHNz3gyFb2ax0,2794
33
+ ddx/common/transactions/cancel.py,sha256=LDthTfaaFE5PwqQRsgSvGJ-9hUDkCb1zBpufe1Z3iWA,2095
34
+ ddx/common/transactions/cancel_all.py,sha256=PzqEQO6R_cD8_Ml67jDW9P-VHvFZEAAZK_MgbyP-_z4,2821
35
+ ddx/common/transactions/complete_fill.py,sha256=fSGi1u37kIMBtG_Lngzdtj6fit7AOe23xiOvLzKSRBw,3814
36
+ ddx/common/transactions/disaster_recovery.py,sha256=1piRJeVLjrJx1b5cgnvNQm3KJpTYZWVbIaj-_uqOGqM,2817
37
+ ddx/common/transactions/event.py,sha256=ykeaon18RMjZ3R071-46ZTLXOKHUChkXuC3cDCfnoww,1227
38
+ ddx/common/transactions/fee_distribution.py,sha256=WJ8xBiIdeu2IonQAQpgMqI-nLc5LEIkVagcvUt5ypk4,4037
39
+ ddx/common/transactions/funding.py,sha256=OcTG_R2leX6XUvflzWEqZVj3of8--0ElpGJQ9MEZ78o,12233
40
+ ddx/common/transactions/futures_expiry.py,sha256=7tPGWcDajk8zHxwnyFQjlBPk6SXxPH7E59gqhjQBTXU,4184
41
+ ddx/common/transactions/genesis.py,sha256=UXY1mn5pRUc0FRbV_RpT_BNhKYsdrrmddN2fNvOJXag,3608
42
+ ddx/common/transactions/inner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
43
+ ddx/common/transactions/inner/adl_outcome.py,sha256=2zFei-03f_40vVwDm-YmQ55QgzbYftOW4N8hrB6QAN4,664
44
+ ddx/common/transactions/inner/fill.py,sha256=J23k7J-FW-DE-ipwYmra6jDQKlUI1JOS7q-lziTVAE8,7937
45
+ ddx/common/transactions/inner/liquidated_position.py,sha256=QYwzZP5QzowSe0A0iE-4K_vTBMm52acL2OwYWuFELdM,1350
46
+ ddx/common/transactions/inner/liquidation_entry.py,sha256=HkSI676jdWCJJMVbogsZwk24osHjA00SaeLrMzocdSs,1374
47
+ ddx/common/transactions/inner/liquidation_fill.py,sha256=xToUkBvForjLQM-NwVdnvx6m9JnujcqfUsvp-2owH9A,3435
48
+ ddx/common/transactions/inner/outcome.py,sha256=yk4OTv9fJk3c9Cldx7jaxKmjwWrhGFupFVWdI9YgnvU,1045
49
+ ddx/common/transactions/inner/trade_fill.py,sha256=x89nUNKxhIXaXFDkHDFbtUNF5VXhc_NAJteKxgpgTXU,3675
50
+ ddx/common/transactions/insurance_fund_update.py,sha256=2ufdTy9WRq3viNbexuIM1j_Gg9FEdyvPQWxmh-fNQwU,5612
51
+ ddx/common/transactions/insurance_fund_withdraw.py,sha256=cRasVLwnTENjpMtzRniWGQCRYoiK0nxz__my_6PMiCc,3317
52
+ ddx/common/transactions/liquidation.py,sha256=xSS-aQF_4tFiJ7-NHcqpV7jEeensqBti-5IRMOJGAnY,15457
53
+ ddx/common/transactions/partial_fill.py,sha256=XQa3ILd4pVKSXWH_APZ41rlr4Pi_UzWciJgWeJcJHXI,4748
54
+ ddx/common/transactions/pnl_realization.py,sha256=8N0igDXDvFUk3J4dTgrhkR36Eu6yI4eWZLXbi0amUdE,3815
55
+ ddx/common/transactions/post.py,sha256=F9dTHXXo5xmbDRBSZzHUPYmDONQtPBuw-KAEEAw_pR8,2225
56
+ ddx/common/transactions/post_order.py,sha256=4DRR_uL33V9A3bnBXap3Ey3br7_-NGJ9W0c884FewTc,2965
57
+ ddx/common/transactions/price_checkpoint.py,sha256=e0491vanRt2ihRtaNw_a_u8_MoWYcCePBOITb5QFkZc,3361
58
+ ddx/common/transactions/signer_registered.py,sha256=COD2l1bHAws6XKdO2u4UqcUF9LTUTl7K7vnhPDg8fhw,1683
59
+ ddx/common/transactions/specs_update.py,sha256=KLXJWfQ2oIpT-92kAY6hnIS4k92wsOWfWGFOhQc4NyQ,1741
60
+ ddx/common/transactions/strategy_update.py,sha256=-Eob0oouUfqwO6cR_jOfsVLne82MOVH2tA0kVue2qJs,5950
61
+ ddx/common/transactions/tradable_product_update.py,sha256=X_QwNxNfN9YokO-yp7rFoXPWZJPC8P01QBZZLIfMeyE,3292
62
+ ddx/common/transactions/trade_mining.py,sha256=sVKiy4PhtA-B5YcDlrUkfzDCkvycmAaY6bf0XKhmyBs,5291
63
+ ddx/common/transactions/trader_update.py,sha256=WRXpP25sDn8qOwfa1srFhVCv00ZhC9owNV74cLCMv28,3634
64
+ ddx/common/transactions/withdraw.py,sha256=dZ8DowB1flCkHuO32UYebVTVMs4XHyvLEGe7Tf7y9Yk,2917
65
+ ddx/common/transactions/withdraw_ddx.py,sha256=zKnkGei_p3EFvtJDRKv8nyXx8rx44zcXBYerjwlw6bk,2109
66
+ ddx/common/utils.py,sha256=CAvQRijd3guEzvfpzhO8n41LoOURscKUaTpVUf7xNQY,4281
67
+ ddx/config.py,sha256=8xu3GYNsWEsrCHGIhze2HhVg69TBC1s086qbAowwi1A,450
68
+ ddx/derivadex_client.py,sha256=ZwkvMmUWHyqRCKPDLhW-lyiemZdhPq00XBawBLDg2m0,7291
69
+ ddx/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
70
+ ddx/realtime_client/__init__.py,sha256=Bklm7RhJQllXmyRSWte7s5Uq9hvUpm29VT_-6-_kLFs,66
71
+ ddx/realtime_client/config.py,sha256=ISYpm9PvBlOF8t1lt6Cj95sZhuL5fEngYpl9yhVRyEI,45
72
+ ddx/realtime_client/logs/pytest.log,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
73
+ ddx/realtime_client/models/__init__.py,sha256=r9rkYQtObzzda9Ax4htqRcz96D0akTV9NtgBL7jdjz4,19942
74
+ ddx/realtime_client/realtime_client.py,sha256=Ra2f2jwkIZiEABIrKIp8eQamFA0AMbCTlrrMyan3bwU,21272
75
+ ddx/rest_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
76
+ ddx/rest_client/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
77
+ ddx/rest_client/clients/base_client.py,sha256=fdbtwzBOhxB37dXcdG7XHvvbtgmK9BpGtFz3FM5trXQ,1780
78
+ ddx/rest_client/clients/market_client.py,sha256=3vTuGUE4sdEyiT6GXFmoheLAgE9B9h2UC4JkH7r_DwM,39639
79
+ ddx/rest_client/clients/on_chain_client.py,sha256=MRWV6N2u8hrCULqtp-P58JXsjJ15ji9KLtO7GmDU6ZA,13734
80
+ ddx/rest_client/clients/signed_client.py,sha256=q4d9V5IuxsFZ2_y7G1t994tee9E-lKwvNB0uHdl0N8k,9127
81
+ ddx/rest_client/clients/system_client.py,sha256=y80fOiq4NDbUjPC--e9xB3DOnpuj_1Ixx00J9AVZsh4,23860
82
+ ddx/rest_client/clients/trade_client.py,sha256=v_38U8a5LDehXR3Nv_8ukkUB7IXv-HgMIQjUCBM0fMo,8922
83
+ ddx/rest_client/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
84
+ ddx/rest_client/constants/endpoints.py,sha256=UJo8shtW8d-gEBQ8oMdam4HbGUDIrKooU_RzmZrTTRc,2617
85
+ ddx/rest_client/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
86
+ ddx/rest_client/contracts/checkpoint/__init__.py,sha256=mUtGxBPaBifgdV8XL18SiTZidpaMu4ayGTPlQ_qdyCA,31094
87
+ ddx/rest_client/contracts/ddx/__init__.py,sha256=4X9luF0j0AfaYYM0gHl4QaX55RhFrV15HLXd3C5h2M0,100411
88
+ ddx/rest_client/contracts/dummy_token/__init__.py,sha256=ZyB7Dv7xWEpHMwFZc0ngye4BTuUSSKd6P6sJM77VJVA,50266
89
+ ddx/rest_client/contracts/i_collateral/__init__.py,sha256=_jncsOl8tfobHwN8bTS8Fw3Lkvtuy14r7WsMuygFPqQ,83472
90
+ ddx/rest_client/contracts/i_stake/__init__.py,sha256=fXNGc5LUZar_J7_CTs7QXDbUff73LQySyQMammY58Vk,36954
91
+ ddx/rest_client/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
92
+ ddx/rest_client/exceptions/exceptions.py,sha256=Ly7JgzIyLQQq4s1st-dUsC8TiEG0-er-L4dqgA-Bv4k,757
93
+ ddx/rest_client/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
94
+ ddx/rest_client/http/http_client.py,sha256=3H2F-lU7iBfjoYYcIm_NgGGi_m8M-Q9QTJl1hFe92Nw,9464
95
+ ddx/rest_client/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
96
+ ddx/rest_client/models/market.py,sha256=o6obyaTV_KB8_VrvWwewiVgCeaZz6nO87N_nmpwV_vo,18602
97
+ ddx/rest_client/models/signed.py,sha256=YBiqjqnQFb9PUf5vEIVtfj5kVLIL88WF_hHaVV3bsDw,1592
98
+ ddx/rest_client/models/system.py,sha256=NC8N7P7umTIFjwvY_TnRq2R26UI3uBIgyhiLcrlq_wE,10109
99
+ ddx/rest_client/models/trade.py,sha256=YU0SBjt-OdmUmRsOO2oWQUXE_XhxLIpvbnamnVOZ6U0,3261
100
+ ddx/rest_client/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
101
+ ddx/rest_client/utils/encryption_utils.py,sha256=kjm15_-cO8a5jK3aTvep9geu3GK7l8UX8EM5jHoGzg4,943
102
+ ddx_python-1.0.5.dist-info/METADATA,sha256=qLPJM6HmmSeQww5WWpXJ9eWVljUX9w0M0OpEK5F-lHU,2599
103
+ ddx_python-1.0.5.dist-info/WHEEL,sha256=YPw3yjdyreyQTroBjnHfaSinF7n1oGTXZSf0JN84XNc,128
104
+ ddx_python-1.0.5.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.9.2)
3
+ Root-Is-Purelib: false
4
+ Tag: cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64