hyperquant 1.48__py3-none-any.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.

Potentially problematic release.


This version of hyperquant might be problematic. Click here for more details.

Files changed (42) hide show
  1. hyperquant/__init__.py +8 -0
  2. hyperquant/broker/auth.py +972 -0
  3. hyperquant/broker/bitget.py +311 -0
  4. hyperquant/broker/bitmart.py +720 -0
  5. hyperquant/broker/coinw.py +487 -0
  6. hyperquant/broker/deepcoin.py +651 -0
  7. hyperquant/broker/edgex.py +500 -0
  8. hyperquant/broker/hyperliquid.py +570 -0
  9. hyperquant/broker/lbank.py +661 -0
  10. hyperquant/broker/lib/edgex_sign.py +455 -0
  11. hyperquant/broker/lib/hpstore.py +252 -0
  12. hyperquant/broker/lib/hyper_types.py +48 -0
  13. hyperquant/broker/lib/polymarket/ctfAbi.py +721 -0
  14. hyperquant/broker/lib/polymarket/safeAbi.py +1138 -0
  15. hyperquant/broker/lib/util.py +22 -0
  16. hyperquant/broker/lighter.py +679 -0
  17. hyperquant/broker/models/apexpro.py +150 -0
  18. hyperquant/broker/models/bitget.py +359 -0
  19. hyperquant/broker/models/bitmart.py +635 -0
  20. hyperquant/broker/models/coinw.py +724 -0
  21. hyperquant/broker/models/deepcoin.py +809 -0
  22. hyperquant/broker/models/edgex.py +1053 -0
  23. hyperquant/broker/models/hyperliquid.py +284 -0
  24. hyperquant/broker/models/lbank.py +557 -0
  25. hyperquant/broker/models/lighter.py +868 -0
  26. hyperquant/broker/models/ourbit.py +1155 -0
  27. hyperquant/broker/models/polymarket.py +1071 -0
  28. hyperquant/broker/ourbit.py +550 -0
  29. hyperquant/broker/polymarket.py +2399 -0
  30. hyperquant/broker/ws.py +132 -0
  31. hyperquant/core.py +513 -0
  32. hyperquant/datavison/_util.py +18 -0
  33. hyperquant/datavison/binance.py +111 -0
  34. hyperquant/datavison/coinglass.py +237 -0
  35. hyperquant/datavison/okx.py +177 -0
  36. hyperquant/db.py +191 -0
  37. hyperquant/draw.py +1200 -0
  38. hyperquant/logkit.py +205 -0
  39. hyperquant/notikit.py +124 -0
  40. hyperquant-1.48.dist-info/METADATA +32 -0
  41. hyperquant-1.48.dist-info/RECORD +42 -0
  42. hyperquant-1.48.dist-info/WHEEL +4 -0
@@ -0,0 +1,721 @@
1
+ ctf_abi = [
2
+ {
3
+ "constant":True,
4
+ "inputs":[
5
+ {
6
+ "name":"owner",
7
+ "type":"address"
8
+ },
9
+ {
10
+ "name":"id",
11
+ "type":"uint256"
12
+ }
13
+ ],
14
+ "name":"balanceOf",
15
+ "outputs":[
16
+ {
17
+ "name":"",
18
+ "type":"uint256"
19
+ }
20
+ ],
21
+ "payable":False,
22
+ "stateMutability":"view",
23
+ "type":"function"
24
+ },
25
+ {
26
+ "constant":True,
27
+ "inputs":[
28
+ {
29
+ "name":"interfaceId",
30
+ "type":"bytes4"
31
+ }
32
+ ],
33
+ "name":"supportsInterface",
34
+ "outputs":[
35
+ {
36
+ "name":"",
37
+ "type":"bool"
38
+ }
39
+ ],
40
+ "payable":False,
41
+ "stateMutability":"view",
42
+ "type":"function"
43
+ },
44
+ {
45
+ "constant":True,
46
+ "inputs":[
47
+ {
48
+ "name":"",
49
+ "type":"bytes32"
50
+ },
51
+ {
52
+ "name":"",
53
+ "type":"uint256"
54
+ }
55
+ ],
56
+ "name":"payoutNumerators",
57
+ "outputs":[
58
+ {
59
+ "name":"",
60
+ "type":"uint256"
61
+ }
62
+ ],
63
+ "payable":False,
64
+ "stateMutability":"view",
65
+ "type":"function"
66
+ },
67
+ {
68
+ "constant":False,
69
+ "inputs":[
70
+ {
71
+ "name":"from",
72
+ "type":"address"
73
+ },
74
+ {
75
+ "name":"to",
76
+ "type":"address"
77
+ },
78
+ {
79
+ "name":"ids",
80
+ "type":"uint256[]"
81
+ },
82
+ {
83
+ "name":"values",
84
+ "type":"uint256[]"
85
+ },
86
+ {
87
+ "name":"data",
88
+ "type":"bytes"
89
+ }
90
+ ],
91
+ "name":"safeBatchTransferFrom",
92
+ "outputs":[
93
+
94
+ ],
95
+ "payable":False,
96
+ "stateMutability":"nonpayable",
97
+ "type":"function"
98
+ },
99
+ {
100
+ "constant":True,
101
+ "inputs":[
102
+ {
103
+ "name":"owners",
104
+ "type":"address[]"
105
+ },
106
+ {
107
+ "name":"ids",
108
+ "type":"uint256[]"
109
+ }
110
+ ],
111
+ "name":"balanceOfBatch",
112
+ "outputs":[
113
+ {
114
+ "name":"",
115
+ "type":"uint256[]"
116
+ }
117
+ ],
118
+ "payable":False,
119
+ "stateMutability":"view",
120
+ "type":"function"
121
+ },
122
+ {
123
+ "constant":False,
124
+ "inputs":[
125
+ {
126
+ "name":"operator",
127
+ "type":"address"
128
+ },
129
+ {
130
+ "name":"approved",
131
+ "type":"bool"
132
+ }
133
+ ],
134
+ "name":"setApprovalForAll",
135
+ "outputs":[
136
+
137
+ ],
138
+ "payable":False,
139
+ "stateMutability":"nonpayable",
140
+ "type":"function"
141
+ },
142
+ {
143
+ "constant":True,
144
+ "inputs":[
145
+ {
146
+ "name":"",
147
+ "type":"bytes32"
148
+ }
149
+ ],
150
+ "name":"payoutDenominator",
151
+ "outputs":[
152
+ {
153
+ "name":"",
154
+ "type":"uint256"
155
+ }
156
+ ],
157
+ "payable":False,
158
+ "stateMutability":"view",
159
+ "type":"function"
160
+ },
161
+ {
162
+ "constant":True,
163
+ "inputs":[
164
+ {
165
+ "name":"owner",
166
+ "type":"address"
167
+ },
168
+ {
169
+ "name":"operator",
170
+ "type":"address"
171
+ }
172
+ ],
173
+ "name":"isApprovedForAll",
174
+ "outputs":[
175
+ {
176
+ "name":"",
177
+ "type":"bool"
178
+ }
179
+ ],
180
+ "payable":False,
181
+ "stateMutability":"view",
182
+ "type":"function"
183
+ },
184
+ {
185
+ "constant":False,
186
+ "inputs":[
187
+ {
188
+ "name":"from",
189
+ "type":"address"
190
+ },
191
+ {
192
+ "name":"to",
193
+ "type":"address"
194
+ },
195
+ {
196
+ "name":"id",
197
+ "type":"uint256"
198
+ },
199
+ {
200
+ "name":"value",
201
+ "type":"uint256"
202
+ },
203
+ {
204
+ "name":"data",
205
+ "type":"bytes"
206
+ }
207
+ ],
208
+ "name":"safeTransferFrom",
209
+ "outputs":[
210
+
211
+ ],
212
+ "payable":False,
213
+ "stateMutability":"nonpayable",
214
+ "type":"function"
215
+ },
216
+ {
217
+ "anonymous":False,
218
+ "inputs":[
219
+ {
220
+ "indexed":True,
221
+ "name":"conditionId",
222
+ "type":"bytes32"
223
+ },
224
+ {
225
+ "indexed":True,
226
+ "name":"oracle",
227
+ "type":"address"
228
+ },
229
+ {
230
+ "indexed":True,
231
+ "name":"questionId",
232
+ "type":"bytes32"
233
+ },
234
+ {
235
+ "indexed":False,
236
+ "name":"outcomeSlotCount",
237
+ "type":"uint256"
238
+ }
239
+ ],
240
+ "name":"ConditionPreparation",
241
+ "type":"event"
242
+ },
243
+ {
244
+ "anonymous":False,
245
+ "inputs":[
246
+ {
247
+ "indexed":True,
248
+ "name":"conditionId",
249
+ "type":"bytes32"
250
+ },
251
+ {
252
+ "indexed":True,
253
+ "name":"oracle",
254
+ "type":"address"
255
+ },
256
+ {
257
+ "indexed":True,
258
+ "name":"questionId",
259
+ "type":"bytes32"
260
+ },
261
+ {
262
+ "indexed":False,
263
+ "name":"outcomeSlotCount",
264
+ "type":"uint256"
265
+ },
266
+ {
267
+ "indexed":False,
268
+ "name":"payoutNumerators",
269
+ "type":"uint256[]"
270
+ }
271
+ ],
272
+ "name":"ConditionResolution",
273
+ "type":"event"
274
+ },
275
+ {
276
+ "anonymous":False,
277
+ "inputs":[
278
+ {
279
+ "indexed":True,
280
+ "name":"stakeholder",
281
+ "type":"address"
282
+ },
283
+ {
284
+ "indexed":False,
285
+ "name":"collateralToken",
286
+ "type":"address"
287
+ },
288
+ {
289
+ "indexed":True,
290
+ "name":"parentCollectionId",
291
+ "type":"bytes32"
292
+ },
293
+ {
294
+ "indexed":True,
295
+ "name":"conditionId",
296
+ "type":"bytes32"
297
+ },
298
+ {
299
+ "indexed":False,
300
+ "name":"partition",
301
+ "type":"uint256[]"
302
+ },
303
+ {
304
+ "indexed":False,
305
+ "name":"amount",
306
+ "type":"uint256"
307
+ }
308
+ ],
309
+ "name":"PositionSplit",
310
+ "type":"event"
311
+ },
312
+ {
313
+ "anonymous":False,
314
+ "inputs":[
315
+ {
316
+ "indexed":True,
317
+ "name":"stakeholder",
318
+ "type":"address"
319
+ },
320
+ {
321
+ "indexed":False,
322
+ "name":"collateralToken",
323
+ "type":"address"
324
+ },
325
+ {
326
+ "indexed":True,
327
+ "name":"parentCollectionId",
328
+ "type":"bytes32"
329
+ },
330
+ {
331
+ "indexed":True,
332
+ "name":"conditionId",
333
+ "type":"bytes32"
334
+ },
335
+ {
336
+ "indexed":False,
337
+ "name":"partition",
338
+ "type":"uint256[]"
339
+ },
340
+ {
341
+ "indexed":False,
342
+ "name":"amount",
343
+ "type":"uint256"
344
+ }
345
+ ],
346
+ "name":"PositionsMerge",
347
+ "type":"event"
348
+ },
349
+ {
350
+ "anonymous":False,
351
+ "inputs":[
352
+ {
353
+ "indexed":True,
354
+ "name":"redeemer",
355
+ "type":"address"
356
+ },
357
+ {
358
+ "indexed":True,
359
+ "name":"collateralToken",
360
+ "type":"address"
361
+ },
362
+ {
363
+ "indexed":True,
364
+ "name":"parentCollectionId",
365
+ "type":"bytes32"
366
+ },
367
+ {
368
+ "indexed":False,
369
+ "name":"conditionId",
370
+ "type":"bytes32"
371
+ },
372
+ {
373
+ "indexed":False,
374
+ "name":"indexSets",
375
+ "type":"uint256[]"
376
+ },
377
+ {
378
+ "indexed":False,
379
+ "name":"payout",
380
+ "type":"uint256"
381
+ }
382
+ ],
383
+ "name":"PayoutRedemption",
384
+ "type":"event"
385
+ },
386
+ {
387
+ "anonymous":False,
388
+ "inputs":[
389
+ {
390
+ "indexed":True,
391
+ "name":"operator",
392
+ "type":"address"
393
+ },
394
+ {
395
+ "indexed":True,
396
+ "name":"from",
397
+ "type":"address"
398
+ },
399
+ {
400
+ "indexed":True,
401
+ "name":"to",
402
+ "type":"address"
403
+ },
404
+ {
405
+ "indexed":False,
406
+ "name":"id",
407
+ "type":"uint256"
408
+ },
409
+ {
410
+ "indexed":False,
411
+ "name":"value",
412
+ "type":"uint256"
413
+ }
414
+ ],
415
+ "name":"TransferSingle",
416
+ "type":"event"
417
+ },
418
+ {
419
+ "anonymous":False,
420
+ "inputs":[
421
+ {
422
+ "indexed":True,
423
+ "name":"operator",
424
+ "type":"address"
425
+ },
426
+ {
427
+ "indexed":True,
428
+ "name":"from",
429
+ "type":"address"
430
+ },
431
+ {
432
+ "indexed":True,
433
+ "name":"to",
434
+ "type":"address"
435
+ },
436
+ {
437
+ "indexed":False,
438
+ "name":"ids",
439
+ "type":"uint256[]"
440
+ },
441
+ {
442
+ "indexed":False,
443
+ "name":"values",
444
+ "type":"uint256[]"
445
+ }
446
+ ],
447
+ "name":"TransferBatch",
448
+ "type":"event"
449
+ },
450
+ {
451
+ "anonymous":False,
452
+ "inputs":[
453
+ {
454
+ "indexed":True,
455
+ "name":"owner",
456
+ "type":"address"
457
+ },
458
+ {
459
+ "indexed":True,
460
+ "name":"operator",
461
+ "type":"address"
462
+ },
463
+ {
464
+ "indexed":False,
465
+ "name":"approved",
466
+ "type":"bool"
467
+ }
468
+ ],
469
+ "name":"ApprovalForAll",
470
+ "type":"event"
471
+ },
472
+ {
473
+ "anonymous":False,
474
+ "inputs":[
475
+ {
476
+ "indexed":False,
477
+ "name":"value",
478
+ "type":"string"
479
+ },
480
+ {
481
+ "indexed":True,
482
+ "name":"id",
483
+ "type":"uint256"
484
+ }
485
+ ],
486
+ "name":"URI",
487
+ "type":"event"
488
+ },
489
+ {
490
+ "constant":False,
491
+ "inputs":[
492
+ {
493
+ "name":"oracle",
494
+ "type":"address"
495
+ },
496
+ {
497
+ "name":"questionId",
498
+ "type":"bytes32"
499
+ },
500
+ {
501
+ "name":"outcomeSlotCount",
502
+ "type":"uint256"
503
+ }
504
+ ],
505
+ "name":"prepareCondition",
506
+ "outputs":[
507
+
508
+ ],
509
+ "payable":False,
510
+ "stateMutability":"nonpayable",
511
+ "type":"function"
512
+ },
513
+ {
514
+ "constant":False,
515
+ "inputs":[
516
+ {
517
+ "name":"questionId",
518
+ "type":"bytes32"
519
+ },
520
+ {
521
+ "name":"payouts",
522
+ "type":"uint256[]"
523
+ }
524
+ ],
525
+ "name":"reportPayouts",
526
+ "outputs":[
527
+
528
+ ],
529
+ "payable":False,
530
+ "stateMutability":"nonpayable",
531
+ "type":"function"
532
+ },
533
+ {
534
+ "constant":False,
535
+ "inputs":[
536
+ {
537
+ "name":"collateralToken",
538
+ "type":"address"
539
+ },
540
+ {
541
+ "name":"parentCollectionId",
542
+ "type":"bytes32"
543
+ },
544
+ {
545
+ "name":"conditionId",
546
+ "type":"bytes32"
547
+ },
548
+ {
549
+ "name":"partition",
550
+ "type":"uint256[]"
551
+ },
552
+ {
553
+ "name":"amount",
554
+ "type":"uint256"
555
+ }
556
+ ],
557
+ "name":"splitPosition",
558
+ "outputs":[
559
+
560
+ ],
561
+ "payable":False,
562
+ "stateMutability":"nonpayable",
563
+ "type":"function"
564
+ },
565
+ {
566
+ "constant":False,
567
+ "inputs":[
568
+ {
569
+ "name":"collateralToken",
570
+ "type":"address"
571
+ },
572
+ {
573
+ "name":"parentCollectionId",
574
+ "type":"bytes32"
575
+ },
576
+ {
577
+ "name":"conditionId",
578
+ "type":"bytes32"
579
+ },
580
+ {
581
+ "name":"partition",
582
+ "type":"uint256[]"
583
+ },
584
+ {
585
+ "name":"amount",
586
+ "type":"uint256"
587
+ }
588
+ ],
589
+ "name":"mergePositions",
590
+ "outputs":[
591
+
592
+ ],
593
+ "payable":False,
594
+ "stateMutability":"nonpayable",
595
+ "type":"function"
596
+ },
597
+ {
598
+ "constant":False,
599
+ "inputs":[
600
+ {
601
+ "name":"collateralToken",
602
+ "type":"address"
603
+ },
604
+ {
605
+ "name":"parentCollectionId",
606
+ "type":"bytes32"
607
+ },
608
+ {
609
+ "name":"conditionId",
610
+ "type":"bytes32"
611
+ },
612
+ {
613
+ "name":"indexSets",
614
+ "type":"uint256[]"
615
+ }
616
+ ],
617
+ "name":"redeemPositions",
618
+ "outputs":[
619
+
620
+ ],
621
+ "payable":False,
622
+ "stateMutability":"nonpayable",
623
+ "type":"function"
624
+ },
625
+ {
626
+ "constant":True,
627
+ "inputs":[
628
+ {
629
+ "name":"conditionId",
630
+ "type":"bytes32"
631
+ }
632
+ ],
633
+ "name":"getOutcomeSlotCount",
634
+ "outputs":[
635
+ {
636
+ "name":"",
637
+ "type":"uint256"
638
+ }
639
+ ],
640
+ "payable":False,
641
+ "stateMutability":"view",
642
+ "type":"function"
643
+ },
644
+ {
645
+ "constant":True,
646
+ "inputs":[
647
+ {
648
+ "name":"oracle",
649
+ "type":"address"
650
+ },
651
+ {
652
+ "name":"questionId",
653
+ "type":"bytes32"
654
+ },
655
+ {
656
+ "name":"outcomeSlotCount",
657
+ "type":"uint256"
658
+ }
659
+ ],
660
+ "name":"getConditionId",
661
+ "outputs":[
662
+ {
663
+ "name":"",
664
+ "type":"bytes32"
665
+ }
666
+ ],
667
+ "payable":False,
668
+ "stateMutability":"pure",
669
+ "type":"function"
670
+ },
671
+ {
672
+ "constant":True,
673
+ "inputs":[
674
+ {
675
+ "name":"parentCollectionId",
676
+ "type":"bytes32"
677
+ },
678
+ {
679
+ "name":"conditionId",
680
+ "type":"bytes32"
681
+ },
682
+ {
683
+ "name":"indexSet",
684
+ "type":"uint256"
685
+ }
686
+ ],
687
+ "name":"getCollectionId",
688
+ "outputs":[
689
+ {
690
+ "name":"",
691
+ "type":"bytes32"
692
+ }
693
+ ],
694
+ "payable":False,
695
+ "stateMutability":"view",
696
+ "type":"function"
697
+ },
698
+ {
699
+ "constant":True,
700
+ "inputs":[
701
+ {
702
+ "name":"collateralToken",
703
+ "type":"address"
704
+ },
705
+ {
706
+ "name":"collectionId",
707
+ "type":"bytes32"
708
+ }
709
+ ],
710
+ "name":"getPositionId",
711
+ "outputs":[
712
+ {
713
+ "name":"",
714
+ "type":"uint256"
715
+ }
716
+ ],
717
+ "payable":False,
718
+ "stateMutability":"pure",
719
+ "type":"function"
720
+ }
721
+ ];