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

尝试编写一个 chrome 的插件, 能够在点击或者 hover "$ETH" 这类标签的时候, 展示相关的信息 #2

Open
iannono opened this issue Mar 12, 2024 · 4 comments
Assignees

Comments

@iannono
Copy link

iannono commented Mar 12, 2024

第一步, 只需要能够弹出展示框, 显示对应的币种的最新价格即可;
未来, 可能参考这个: https://x-alpha.ai/x-alpha


注意能够再 feed 里面能够查看, 而不需要去到主页里面

@iannono iannono changed the title 尝试编写一个 chrome 的插件, 能够在点击或者 hover $ETH 尝试编写一个 chrome 的插件, 能够在点击或者 hover "$ETH" 这类标签的时候, 展示相关的信息 Mar 12, 2024
@0xRichardH
Copy link
Collaborator

0xRichardH commented Mar 13, 2024

  • It doesn't work on some twitter comments.
  • The price is hard coded
image
  • get the real-time price from the API
  • better API handling and cache the API response

@0xRichardH
Copy link
Collaborator

  • can get the quote data from CoinMarketCap testing api
image image
curl -H "X-CMC_PRO_API_KEY: b54bcf4d-1bca-4e8e-9a24-22ff2c3d462c" -H "Accept: application/json" -d "symbol=AEVO" -G https://sandbox-api.coinmarketcap.com/v2/cryptocurrency/quotes/latest

@0xRichardH
Copy link
Collaborator

  • set up CoinMarketCap API token
image
  • display the token price
image

@0xRichardH
Copy link
Collaborator

目前功能已经基本完成,安装和使用文档 https://github.com/brtr/twitter-plugin/blob/main/docs/index.md

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