whois-charman
项目描述
一个跨区块链事件预测交易所进行事件查询,并且计算多方赔率总和进行套利的平台。 分为 centry作为中心进行监控事件、提醒、交易等核心功能;agent下的代码针对不同预测事件交易所实现事件爬取,实时获取数据,并统合成统一标准返回
核心
核心原理是 通过centry 监控各个交易所,找到同一个事件,但正反赔率之和小于1的两个交易所,进行套利。
-
第一种套利方式
比如 A 交易所中 预测事件1的赔率为(Yes 0.6 , No 0.4) B 交易所中 预测事件1的赔率为(Yes 0.5 ,No 0.5) 那么购买A交易所的 No 和 B交易所的 Yes,就可以实现套利。
-
第二种套利方式
在第一种的基础上,发现现在的赔率提高,如 A的No 变成0.5, B的yes变成0.6. 则直接将已购买的No和yes进行平仓进行获利。
-
第三种套利方式
对单事件进行扫尾盘监控,如果很快能到平盘,则进行套利。
结构
centry 和 Agents 两个部分都可独立运行, 在centry中配置agent。
1. agent 负责实现各个交易所的预测事件爬取,并返回统一标准的数据。
2. centry 负责用户管理,监控各个agent返回的数据,进行事件匹配,并计算赔率,进行套利交易。
概念
1. 交易所账户:
各个预测事件区块链交易所的账户,一般来说,每个交易所账户会有一个API
2. centry用户:
指centry系统的使用用户,一个centry用户会有名下多个交易所的交易所账户。
centry 中
1. centry用户管理。
每增加一个agent 都需要配置一个交易所账户和API
2. 事件监控
3. 事件提醒
4. 事件套利交易: 这个交易会委托给agent最终实现。
agent 中
1. 交易所账户配置,针对各个交易所单独实现,每个交易所一个agent来
2. 事件爬取
3. 事件数据统一标准返回
4. 最终交易: 交易
Metadata
Release files for whois-charman 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| whois_charman-0.1.4.tar.gz | 110.9 kB | Without provenance | Details |
Release files / whois_charman-0.1.4.tar.gz
| Download URL | whois_charman-0.1.4.tar.gz |
|---|---|
| Size | 110.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
602673ccd0c7ac1b9bbbf204ec7b9a910db4646855499b2609acbd9673d8a74b
|
|
BLAKE2b-256 checksum How to use checksums |
c54337effd2058609ca8efb8dbc9728c199a8c938efae413b9bdaa2b734fa7b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Security for whois-charman 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.