Allen-Taylor / pump_fun_py

Pump Fun with Python
117 stars 40 forks source link

Endpoint data is not up to date? #2

Closed jed057 closed 4 months ago

jed057 commented 4 months ago

the data virtual_sol_reserves/virtual_token_reserves get from https://frontend-api.pump.fun/coins/ is not exactly same with the data on solscan.

e.g. https://[frontend-api.pump.fun/coins/DrhMtViS18YGXEi3YxMKGxmXUK4njTYjHFm6ac9Ypump]

"virtual_sol_reserves": 30079701700, "virtual_token_reserves": 1070156892007420,

but on https://solscan.io/account/Enys21L3xzCBhJQerqFsAVhVJnigJRQtuu4VbRHUVrF5#data

{ "type": "u64", "data": "1070142661056560" }

{ "type": "u64", "data": "30080101707" }

Allen-Taylor commented 4 months ago

Okay. Thanks for the information.

If you aren't happy with the front endpoint data you can write a function to decode the bonding curve account values.