Last active
August 7, 2023 14:45
-
-
Save dredshep/1960149838d1415c70e53997866ca3a7 to your computer and use it in GitHub Desktop.
Balancer API Token
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "tokens": [ | |
| { | |
| "symbol": "rETH", | |
| "address": "0xb23c20efce6e24acca0cef9b7b7aa196b84ec942", | |
| "priceRate": "1", | |
| "balance": "3.942416046125885118", | |
| "isExemptFromYieldProtocolFee": false, | |
| "decimals": 18, | |
| "name": "Rocket Pool ETH", | |
| "weight": "0.5", | |
| "id": "0x6f34a44fce1506352a171232163e7716dd073ade000200000000000000000015-0xb23c20efce6e24acca0cef9b7b7aa196b84ec942", | |
| "managedBalance": "0", | |
| "token": { | |
| "pool": null, | |
| "latestUSDPrice": "1983.829999634532402615140157045865", | |
| "latestFXPrice": null | |
| } | |
| }, | |
| { | |
| "symbol": "bb-o-USD", | |
| "address": "0xe274c9deb6ed34cfe4130f8d0a8a948dea5bb286", | |
| "priceRate": "1", | |
| "balance": "7806.61150717225001886", | |
| "isExemptFromYieldProtocolFee": false, | |
| "decimals": 18, | |
| "name": "Balancer 0vix Boosted StablePool", | |
| "weight": "0.5", | |
| "id": "0x6f34a44fce1506352a171232163e7716dd073ade000200000000000000000015-0xe274c9deb6ed34cfe4130f8d0a8a948dea5bb286", | |
| "managedBalance": "0", | |
| "token": { | |
| "pool": { | |
| "mainIndex": null, | |
| "tokens": [ | |
| { | |
| "symbol": "bb-o-USDC", | |
| "address": "0x16c9a4d841e88e52b51936106010f27085a529ec", | |
| "priceRate": "1.000000086481767789", | |
| "balance": "1471.147244497912945467", | |
| "isExemptFromYieldProtocolFee": false, | |
| "decimals": 18, | |
| "weight": null, | |
| "token": { | |
| "pool": { | |
| "mainIndex": 2, | |
| "tokens": [ | |
| { | |
| "symbol": "bb-o-USDC", | |
| "address": "0x16c9a4d841e88e52b51936106010f27085a529ec", | |
| "priceRate": "1", | |
| "balance": "5192296858533344.450281810139875936", | |
| "isExemptFromYieldProtocolFee": null, | |
| "decimals": 18, | |
| "weight": null, | |
| "token": { | |
| "pool": { | |
| "mainIndex": 2, | |
| "id": "0x16c9a4d841e88e52b51936106010f27085a529ec00000000000000000000000c", | |
| "address": "0x16c9a4d841e88e52b51936106010f27085a529ec", | |
| "poolType": "ERC4626Linear", | |
| "totalShares": "1483.178248686189344159" | |
| }, | |
| "latestUSDPrice": "1.00000009123233217295561755038869" | |
| } | |
| }, | |
| { | |
| "symbol": "woUSDC", | |
| "address": "0x3a6789fc7c05a83cfdff5d2f9428ad9868b4ff85", | |
| "priceRate": "1", | |
| "balance": "0", | |
| "isExemptFromYieldProtocolFee": null, | |
| "decimals": 6, | |
| "weight": null, | |
| "token": { | |
| "pool": null, | |
| "latestUSDPrice": "1" | |
| } | |
| }, | |
| { | |
| "symbol": "USDC", | |
| "address": "0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035", | |
| "priceRate": "1", | |
| "balance": "1483.178384", | |
| "isExemptFromYieldProtocolFee": null, | |
| "decimals": 6, | |
| "weight": null, | |
| "token": { | |
| "pool": null, | |
| "latestUSDPrice": "1.000999845916887508380664139400901" | |
| } | |
| } | |
| ], | |
| "id": "0x16c9a4d841e88e52b51936106010f27085a529ec00000000000000000000000c", | |
| "address": "0x16c9a4d841e88e52b51936106010f27085a529ec", | |
| "poolType": "ERC4626Linear", | |
| "totalShares": "1483.178248686189344159" | |
| }, | |
| "latestUSDPrice": "1.00000009123233217295561755038869" | |
| } | |
| }, | |
| { | |
| "symbol": "bb-o-USDT", | |
| "address": "0x4b718e0e2fea1da68b763cd50c446fba03ceb2ea", | |
| "priceRate": "1.000000055977585706", | |
| "balance": "7208.493974657846249966", | |
| "isExemptFromYieldProtocolFee": false, | |
| "decimals": 18, | |
| "weight": null, | |
| "token": { | |
| "pool": { | |
| "mainIndex": 1, | |
| "tokens": [ | |
| { | |
| "symbol": "bb-o-USDT", | |
| "address": "0x4b718e0e2fea1da68b763cd50c446fba03ceb2ea", | |
| "priceRate": "1", | |
| "balance": "5192296858527617.105245292765938636", | |
| "isExemptFromYieldProtocolFee": null, | |
| "decimals": 18, | |
| "weight": null, | |
| "token": { | |
| "pool": { | |
| "mainIndex": 1, | |
| "id": "0x4b718e0e2fea1da68b763cd50c446fba03ceb2ea00000000000000000000000b", | |
| "address": "0x4b718e0e2fea1da68b763cd50c446fba03ceb2ea", | |
| "poolType": "ERC4626Linear", | |
| "totalShares": "7210.523285203563281459" | |
| }, | |
| "latestUSDPrice": "1.000000057526537299966670767951792" | |
| } | |
| }, | |
| { | |
| "symbol": "USDT", | |
| "address": "0x1e4a5963abfd975d8c9021ce480b42188849d41d", | |
| "priceRate": "1", | |
| "balance": "7210.5237", | |
| "isExemptFromYieldProtocolFee": null, | |
| "decimals": 6, | |
| "weight": null, | |
| "token": { | |
| "pool": null, | |
| "latestUSDPrice": "0.9999999999999999999999999999999997" | |
| } | |
| }, | |
| { | |
| "symbol": "woUSDT", | |
| "address": "0x550d3bb1f77f97e4debb45d4f817d7b9f9a1affb", | |
| "priceRate": "1", | |
| "balance": "0", | |
| "isExemptFromYieldProtocolFee": null, | |
| "decimals": 6, | |
| "weight": null, | |
| "token": { | |
| "pool": null, | |
| "latestUSDPrice": "1" | |
| } | |
| } | |
| ], | |
| "id": "0x4b718e0e2fea1da68b763cd50c446fba03ceb2ea00000000000000000000000b", | |
| "address": "0x4b718e0e2fea1da68b763cd50c446fba03ceb2ea", | |
| "poolType": "ERC4626Linear", | |
| "totalShares": "7210.523285203563281459" | |
| }, | |
| "latestUSDPrice": "1.000000057526537299966670767951792" | |
| } | |
| }, | |
| { | |
| "symbol": "bb-o-USD", | |
| "address": "0xe274c9deb6ed34cfe4130f8d0a8a948dea5bb286", | |
| "priceRate": "1", | |
| "balance": "2596148429273269.348054706677836292", | |
| "isExemptFromYieldProtocolFee": false, | |
| "decimals": 18, | |
| "weight": null, | |
| "token": { | |
| "pool": { | |
| "mainIndex": null, | |
| "tokens": [ | |
| { | |
| "symbol": "bb-o-USDC", | |
| "address": "0x16c9a4d841e88e52b51936106010f27085a529ec", | |
| "priceRate": "1.000000086481767789", | |
| "balance": "1471.147244497912945467", | |
| "isExemptFromYieldProtocolFee": false, | |
| "decimals": 18, | |
| "weight": null, | |
| "token": { | |
| "pool": { | |
| "mainIndex": 2, | |
| "id": "0x16c9a4d841e88e52b51936106010f27085a529ec00000000000000000000000c", | |
| "address": "0x16c9a4d841e88e52b51936106010f27085a529ec", | |
| "poolType": "ERC4626Linear", | |
| "totalShares": "1483.178248686189344159" | |
| }, | |
| "latestUSDPrice": "1.00000009123233217295561755038869" | |
| } | |
| }, | |
| { | |
| "symbol": "bb-o-USDT", | |
| "address": "0x4b718e0e2fea1da68b763cd50c446fba03ceb2ea", | |
| "priceRate": "1.000000055977585706", | |
| "balance": "7208.493974657846249966", | |
| "isExemptFromYieldProtocolFee": false, | |
| "decimals": 18, | |
| "weight": null, | |
| "token": { | |
| "pool": { | |
| "mainIndex": 1, | |
| "id": "0x4b718e0e2fea1da68b763cd50c446fba03ceb2ea00000000000000000000000b", | |
| "address": "0x4b718e0e2fea1da68b763cd50c446fba03ceb2ea", | |
| "poolType": "ERC4626Linear", | |
| "totalShares": "7210.523285203563281459" | |
| }, | |
| "latestUSDPrice": "1.000000057526537299966670767951792" | |
| } | |
| }, | |
| { | |
| "symbol": "bb-o-USD", | |
| "address": "0xe274c9deb6ed34cfe4130f8d0a8a948dea5bb286", | |
| "priceRate": "1", | |
| "balance": "2596148429273269.348054706677836292", | |
| "isExemptFromYieldProtocolFee": false, | |
| "decimals": 18, | |
| "weight": null, | |
| "token": { | |
| "pool": { | |
| "mainIndex": null, | |
| "id": "0xe274c9deb6ed34cfe4130f8d0a8a948dea5bb28600000000000000000000000d", | |
| "address": "0xe274c9deb6ed34cfe4130f8d0a8a948dea5bb286", | |
| "poolType": "ComposableStable", | |
| "totalShares": "8663.39417044296591681" | |
| }, | |
| "latestUSDPrice": "1.002076311077323884326149330935085" | |
| } | |
| } | |
| ], | |
| "id": "0xe274c9deb6ed34cfe4130f8d0a8a948dea5bb28600000000000000000000000d", | |
| "address": "0xe274c9deb6ed34cfe4130f8d0a8a948dea5bb286", | |
| "poolType": "ComposableStable", | |
| "totalShares": "8663.39417044296591681" | |
| }, | |
| "latestUSDPrice": "1.002076311077323884326149330935085" | |
| } | |
| } | |
| ], | |
| "id": "0xe274c9deb6ed34cfe4130f8d0a8a948dea5bb28600000000000000000000000d", | |
| "address": "0xe274c9deb6ed34cfe4130f8d0a8a948dea5bb286", | |
| "poolType": "ComposableStable", | |
| "totalShares": "8663.39417044296591681" | |
| }, | |
| "latestUSDPrice": "1.002076311077323884326149330935085", | |
| "latestFXPrice": null | |
| } | |
| } | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0x01e4464604ad0167d9dccda63ecd471b0ca0f0ef000200000000000000000020 | |
| 0x02c9dcb975262719a61f9b40bdf0987ead9add3a000000000000000000000006 | |
| 0x16c9a4d841e88e52b51936106010f27085a529ec00000000000000000000000c | |
| 0x195def5dabc4a73c4a6a410554f4e53f3e55f1a900010000000000000000000a | |
| 0x1d0a8a31cdb04efac3153237526fb15cc65a252000000000000000000000000f | |
| 0x246e3d0ae7664854e4dcb0d8c85220e714a5f033000200000000000000000022 | |
| 0x32b5d76f76dd68c676190ee98a9877587f9b3b22000200000000000000000026 | |
| 0x32be2d0ddeaf3333501b24a28668ce373ba8e763000200000000000000000014 | |
| 0x32f03464fdf909fdf3798f87ff3712b10c59bd86000000000000000000000005 | |
| 0x3c87ff3e9307dbebfae720e04c6439e49f79bf9b000200000000000000000000 | |
| 0x47eeb5e07b8db37f75f29422d90a2b729c8f395500020000000000000000001e | |
| 0x48194f969522bcc131256a92bc4895ea04809b41000200000000000000000027 | |
| 0x4b718e0e2fea1da68b763cd50c446fba03ceb2ea00000000000000000000000b | |
| 0x53ddc1f1ef585b426c03674f278f8107f1524ade000200000000000000000012 | |
| 0x5480b5f610fa0e11e66b42b977e06703c07bc5cf000200000000000000000008 | |
| 0x5b125477cd532b892c3a6b206014c6c9518a0afe000200000000000000000018 | |
| 0x68a69c596b3839023c0e08d09682314f582314e5000200000000000000000011 | |
| 0x6f34a44fce1506352a171232163e7716dd073ade000200000000000000000015 | |
| 0x6f5f794a3cef904b8517c4c311de2fa837ff24a0000000000000000000000002 | |
| 0x78385153d2f356c87001f09bb5424137c618d38b000200000000000000000001 | |
| 0x7da2bb31cb168be60025f9122a95cbb3949e7e9e000200000000000000000016 | |
| 0x910d889a6ccd1b731c8cec2acdf78c6b81e1e3c0000200000000000000000028 | |
| 0x91e320de69e66de95a467ca2b7240bd64a02f5ad000200000000000000000021 | |
| 0x9796631591ba3bc77f972db22b4fca9cece57f3200020000000000000000001f | |
| 0x9e2d87f904862671eb49cb358e74284762cc9f42000200000000000000000013 | |
| 0xa1c3ca20558665214abacc9be6c281b04165e5bd000200000000000000000025 | |
| 0xa4475aa0a6971e3cc82de08e9ce432ecc8a562ad000200000000000000000029 | |
| 0xa77a369bdc3ad638881feae97e0679e3b428f5a100020000000000000000001d | |
| 0xa7f602cfaf75a566cb0ed110993ee81c27fa3f53000200000000000000000009 | |
| 0xac4b72c01072a52b73ca71105504f1372efcce0d000000000000000000000003 | |
| 0xbfd65c6160cfd638a85c645e6e6d8acac5dac935000000000000000000000004 | |
| 0xc27260ee43394bd134007ee9ec078071b04cee2500020000000000000000001c | |
| 0xc951aebfa361e9d0063355b9e68f5fa4599aa3d1000100000000000000000017 | |
| 0xca4d6fff7e481a22273b02b6df5563dc36846cdc00020000000000000000001b | |
| 0xdf725fde6e89981fb30d9bf999841ac2c160b512000000000000000000000010 | |
| 0xe1f2c039a68a216de6dd427be6c60decf405762a00000000000000000000000e | |
| 0xe274c9deb6ed34cfe4130f8d0a8a948dea5bb28600000000000000000000000d | |
| 0xe8ca7400eb61d5bdfc3f8f2ea99e687e0a4dbf78000100000000000000000019 | |
| 0xff9b1278eba8046007bf9c30b3d93f68f932345100020000000000000000001a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //source: https://app.quicktype.io/?l=ts | |
| interface APRApiResponse { | |
| feesSnapshot: string; | |
| c: null; | |
| apr: Apr; | |
| holdersCount: string; | |
| isNew: boolean; | |
| root3Alpha: null; | |
| protocolYieldFeeCache: null | string; | |
| epsilon: null; | |
| s: null; | |
| maxApr: string; | |
| u: null; | |
| v: null; | |
| sqrtAlpha: null; | |
| w: null; | |
| priceRateProviders: PriceRateProvider[]; | |
| z: null; | |
| totalShares: string; | |
| tauBetaX: null; | |
| mainIndex: number | null; | |
| tauBetaY: null; | |
| factory: Factory; | |
| symbol: string; | |
| wrappedIndex: number | null; | |
| sqrtBeta: null; | |
| address: string; | |
| createTime: number; | |
| isInRecoveryMode: boolean | null; | |
| tokenAddresses: string[]; | |
| swapsCount: string; | |
| totalSwapFee: string; | |
| delta: null; | |
| lambda: null; | |
| swapFee: string; | |
| upperTarget: null | string; | |
| dSq: null; | |
| alpha: null; | |
| lowerTarget: null | string; | |
| swapEnabled: boolean; | |
| volumeSnapshot: string; | |
| tauAlphaX: null; | |
| tauAlphaY: null; | |
| strategyType: number; | |
| beta: null; | |
| name: string; | |
| poolTypeVersion: number; | |
| owner: Owner | null; | |
| id: string; | |
| protocolSwapFeeCache: null | string; | |
| totalSwapVolume: string; | |
| tokensList: string[]; | |
| isPaused: boolean; | |
| poolType: PoolType; | |
| lastUpdate: number; | |
| totalWeight: string; | |
| chainId: number; | |
| totalLiquidity: string; | |
| graphData: GraphData; | |
| tokens: ResultToken[]; | |
| amp?: string; | |
| } | |
| interface Apr { | |
| protocolApr: number; | |
| min: number; | |
| max: number; | |
| rewardAprs: Aprs; | |
| stakingApr: StakingApr; | |
| swapFees: number; | |
| tokenAprs: Aprs; | |
| } | |
| interface Aprs { | |
| total: number; | |
| breakdown: { [key: string]: number }; | |
| } | |
| interface StakingApr { | |
| max: number; | |
| min: number; | |
| } | |
| enum Factory { | |
| The0X03F3Fb107E74F2Eac9358862E91Ad3C692712054 = "0x03f3fb107e74f2eac9358862e91ad3c692712054", | |
| The0X6B1Da720Be2D11D95177Ccfc40A917C2688F396C = "0x6b1da720be2d11d95177ccfc40a917c2688f396c", | |
| The0X8Ea89804145C007E7D226001A96955Ad53836087 = "0x8ea89804145c007e7d226001a96955ad53836087", | |
| } | |
| interface GraphData { | |
| totalLiquidity: string; | |
| } | |
| enum Owner { | |
| The0Xba1Ba1Ba1Ba1Ba1Ba1Ba1Ba1Ba1Ba1Ba1Ba1Ba1B = "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b", | |
| The0Xc41A3Cf9Fd19896Adaf64Fca71E905E8802Ebdb1 = "0xc41a3cf9fd19896adaf64fca71e905e8802ebdb1", | |
| } | |
| enum PoolType { | |
| ComposableStable = "ComposableStable", | |
| ERC4626Linear = "ERC4626Linear", | |
| Weighted = "Weighted", | |
| } | |
| interface PriceRateProvider { | |
| address: string; | |
| token: PriceRateProviderToken; | |
| } | |
| interface PriceRateProviderToken { | |
| address: string; | |
| } | |
| interface ResultToken { | |
| symbol: string; | |
| address: string; | |
| priceRate: string; | |
| balance: string; | |
| isExemptFromYieldProtocolFee: boolean | null; | |
| decimals: number; | |
| name: string; | |
| weight: null | string; | |
| id: string; | |
| managedBalance: string; | |
| token: PurpleToken; | |
| } | |
| interface PurpleToken { | |
| pool: PurplePool | null; | |
| latestUSDPrice: null | string; | |
| latestFXPrice?: null; | |
| } | |
| interface IndigoToken { | |
| pool: PurplePool | null; | |
| latestUSDPrice: string; | |
| } | |
| interface StickyToken { | |
| symbol: string; | |
| address: string; | |
| priceRate: string; | |
| balance: string; | |
| isExemptFromYieldProtocolFee?: boolean | null; | |
| decimals: number; | |
| weight: null; | |
| token: IndigoToken; | |
| } | |
| interface FluffyPool { | |
| mainIndex: number | null; | |
| tokens: StickyToken[]; | |
| id: string; | |
| address: Address; | |
| poolType: PoolType; | |
| totalShares: string; | |
| } | |
| interface TentacledToken { | |
| pool: FluffyPool | null; | |
| latestUSDPrice: string; | |
| } | |
| interface FluffyToken { | |
| symbol: string; | |
| address: string; | |
| priceRate: string; | |
| balance: string; | |
| isExemptFromYieldProtocolFee?: boolean | null; | |
| decimals: number; | |
| weight: null; | |
| token: TentacledToken; | |
| } | |
| interface PurplePool { | |
| mainIndex: number | null; | |
| tokens?: FluffyToken[]; | |
| id: string; | |
| address: Address; | |
| poolType: PoolType; | |
| totalShares: string; | |
| } | |
| enum Address { | |
| The0X16C9A4D841E88E52B51936106010F27085A529Ec = "0x16c9a4d841e88e52b51936106010f27085a529ec", | |
| The0X1D0A8A31Cdb04Efac3153237526Fb15Cc65A2520 = "0x1d0a8a31cdb04efac3153237526fb15cc65a2520", | |
| The0X4B718E0E2Fea1Da68B763Cd50C446Fba03Ceb2Ea = "0x4b718e0e2fea1da68b763cd50c446fba03ceb2ea", | |
| The0Xdf725Fde6E89981Fb30D9Bf999841Ac2C160B512 = "0xdf725fde6e89981fb30d9bf999841ac2c160b512", | |
| The0Xe1F2C039A68A216De6Dd427Be6C60Decf405762A = "0xe1f2c039a68a216de6dd427be6c60decf405762a", | |
| The0Xe274C9Deb6Ed34Cfe4130F8D0A8A948Dea5Bb286 = "0xe274c9deb6ed34cfe4130f8d0a8a948dea5bb286", | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment