pancaketrade icon indicating copy to clipboard operation
pancaketrade copied to clipboard

[feature] auto fetch our token

Open geeks121 opened this issue 2 years ago • 6 comments

Is posible to fetch token automatically without manual add.

token thats exist already in our wallet

geeks121 avatar Aug 31 '21 14:08 geeks121

Hi. This is unlikely to be implemented as it would require extensive development and I'm not prepared for it. If anyone has any pointers on how to implement this, feel free to comment.

beeb avatar Aug 31 '21 15:08 beeb

There is not anything easy as ballance is not in wallet. It should be a form to iterate over all bsc tokens and get ballance for all .... So not easy

osatien avatar Dec 06 '21 19:12 osatien

Maybe using something like the debank api. It’s free.

https://docs.open.debank.com/en/

kosener avatar Feb 10 '22 01:02 kosener

Maybe using something like the debank api. It’s free.

https://docs.open.debank.com/en/

amazing.. i see here.. so its possible.. thank

and may be can be implemented as portofolio.. auto and manuall add

https://docs.open.debank.com/en/reference/api-reference/user

geeks121 avatar Feb 10 '22 01:02 geeks121

get user token list and balance ..

curl -X 'GET'
'https://openapi.debank.com/v1/user/token_list?id=0x5853ed4f26a3fcea565b3fbc698bb19cdf6deb85&chain_id=bsc&is_all=false&has_balance=true'
-H 'accept: application/json'

geeks121 avatar Feb 10 '22 01:02 geeks121

Maybe using something like the debank api. It’s free.

https://docs.open.debank.com/en/

I'm roughly against using an external service for this for the following reasons:

  • Do we know how good their uptime is?
  • Do we know if their node is always sync'd?
  • The API is currently free, but will it always remain so?
  • The endpoint for token_list only returns 20 results for me, when i have hundreds of tokens with a balance

beeb avatar Feb 10 '22 06:02 beeb