target_blocks = [17012360, 17012335, 17012310, 17012286, 17012261, 17012236, 17012211, 17012187, 17012162]
address = 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599
historicalPrice = []
for to_block in target_blocks:
params = {
"address": address,
"chain": "eth",
"to_block": to_block
}
result = evm_api.token.get_token_price(
api_key=self.moralisAPK,
params=params,
)
historicalPrice.append(result)
print(historicalPrice)
result [{'nativePrice': {'value': '15220781010780996321', 'decimals': 18, 'name': 'Ether', 'symbol': 'ETH'}, 'usdPrice': 27992.40394767996, 'exchangeAddress': '0x1f98431c8ad98523631ae4a59f267346ea31f984', 'exchangeName': 'Uniswap v3'}, {'nativePrice': {'value': '15220781010780996321', 'decimals': 18, 'name': 'Ether', 'symbol': 'ETH'}, 'usdPrice': 27992.40394767996, 'exchangeAddress': '0x1f98431c8ad98523631ae4a59f267346ea31f984', 'exchangeName': 'Uniswap v3'}, {'nativePrice': {'value': '15220781010780996321', 'decimals': 18, 'name': 'Ether', 'symbol': 'ETH'}, 'usdPrice': 27992.40394767996, 'exchangeAddress': '0x1f98431c8ad98523631ae4a59f267346ea31f984', 'exchangeName': 'Uniswap v3'}, {'nativePrice': {'value': '15220781010780996321', 'decimals': 18, 'name': 'Ether', 'symbol': 'ETH'}, 'usdPrice': 27992.40394767996, 'exchangeAddress': '0x1f98431c8ad98523631ae4a59f267346ea31f984', 'exchangeName': 'Uniswap v3'}, {'nativePrice': {'value': '15220781010780996321', 'decimals': 18, 'name': 'Ether', 'symbol': 'ETH'}, 'usdPrice': 27992.40394767996, 'exchangeAddress': '0x1f98431c8ad98523631ae4a59f267346ea31f984', 'exchangeName': 'Uniswap v3'}, {'nativePrice': {'value': '15220781010780996321', 'decimals': 18, 'name': 'Ether', 'symbol': 'ETH'}, 'usdPrice': 27989.604987181243, 'exchangeAddress': '0x1f98431c8ad98523631ae4a59f267346ea31f984', 'exchangeName': 'Uniswap v3'}, {'nativePrice': {'value': '15220781010780996321', 'decimals': 18, 'name': 'Ether', 'symbol': 'ETH'}, 'usdPrice': 27989.604987181243, 'exchangeAddress': '0x1f98431c8ad98523631ae4a59f267346ea31f984', 'exchangeName': 'Uniswap v3'}, {'nativePrice': {'value': '15220781010780996321', 'decimals': 18, 'name': 'Ether', 'symbol': 'ETH'}, 'usdPrice': 27989.604987181243, 'exchangeAddress': '0x1f98431c8ad98523631ae4a59f267346ea31f984', 'exchangeName': 'Uniswap v3'}, {'nativePrice': {'value': '15220781010780996321', 'decimals': 18, 'name': 'Ether', 'symbol': 'ETH'}, 'usdPrice': 27989.604987181243, 'exchangeAddress': '0x1f98431c8ad98523631ae4a59f267346ea31f984', 'exchangeName': 'Uniswap v3'}]
The value 15220781010780996321
is repeated too many times
How is it possible that target_blocks spread so wide apart is giving the exact same value ?
OR Is there something I am missing ?