Skip to content

Instantly share code, notes, and snippets.

View rodrigosobrero's full-sized avatar
💻
Focusing

Rodrigo Sobrero rodrigosobrero

💻
Focusing
View GitHub Profile
@rodrigosobrero
rodrigosobrero / thegraph.py
Last active December 3, 2020 13:46
Obtener precio de un token con el Subgraph oficial de Balancer.
from gql import gql, Client
from gql.transport.aiohttp import AIOHTTPTransport
transport = AIOHTTPTransport(url="https://api.thegraph.com/subgraphs/name/balancer-labs/balancer")
client = Client(transport=transport, fetch_schema_from_transport=True)
# DAI
tokenAddress = "0x6b175474e89094c44da98b954eedeac495271d0f"
@rodrigosobrero
rodrigosobrero / performanceTest.html
Created October 19, 2020 18:10
Performance API
<!doctype html>
<html>
<head>
</head>
<body onload="loadResources()">
<script>
function loadResources() {
var image1 = new Image();
@rodrigosobrero
rodrigosobrero / defiBalances.json
Created September 3, 2020 15:30
defi-sdk balances
[
{
"metadata": {
"name": "Matic",
"description": "A scaling solution for public blockchains",
"website": "https://matic.network/",
"logo": "https://http//protocol-icons.s3.amazonaws.com/matic.png",
"version": "1n"
},
"balances": [
{
"hits": [
{
"store_id": 128480,
"schedules": [
{
"open_time": "12:00:00",
"close_time": "23:30:00"
}
],