Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为我们的 twitter 插件 增加读取我们买入情况的数据 #3

Open
iannono opened this issue Mar 20, 2024 · 3 comments
Open
Assignees

Comments

@iannono
Copy link

iannono commented Mar 20, 2024

#2
https://github.com/brtr/spot_manager

第一步的获取价格功能已经完成, 接下来, 我们希望能够读取到我们系统中已经购买的数据。 即如果查看的这个币种, 在我们的 spot manager 中已经有了购买的现货数据, 则显示我们买了多少, 买入的平均价格, 以及相对于现在价格的盈亏情况。

@0xRichardH 0xRichardH self-assigned this Mar 20, 2024
@0xRichardH
Copy link
Collaborator

curl 'https://spot.techbay.club/aggregate_transactions?search=ETH' -H "Accept: application/json"
[
  {
    "id": 682,
    "original_symbol": "ETH / USDT",
    "from_symbol": "ETH",
    "to_symbol": "USDT",
    "fee_symbol": null,
    "price": "1702.955316109422492401",
    "qty": "0.329",
    "amount": "560.272299",
    "fee": "0.0",
    "revenue": "540.976241",
    "roi": "0.965559500202953992554966563",
    "current_price": "3347.26",
    "percentage_24h": "5.84",
    "percentage_7d": "13.35",
    "last_trade_at": "2023-06-07T03:27:02.000Z",
    "created_at": "2024-03-09T11:26:12.002Z",
    "updated_at": "2024-03-23T02:45:00.691Z"
  }
]

@0xRichardH
Copy link
Collaborator

  • 有 spot trading 数据
image
  • 没有 spot trading 数据
image

@0xRichardH
Copy link
Collaborator

0xRichardH commented Mar 27, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants