{"openapi":"3.1.0","info":{"title":"Curve prices","description":"Price Feeds Backend API","version":"1.0.0"},"paths":{"/v1/chains/":{"get":{"tags":["v1 chains"],"summary":"Get all supported chains","operationId":"get_chains_v1_chains__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__chains__models__ChainsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/chains/stats":{"get":{"tags":["v1 chains"],"summary":"Get aggregated stats across all chains","operationId":"get_chains_stats_v1_chains_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChainsStatsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/chains/fees":{"get":{"tags":["v1 chains"],"summary":"Get fee stats with DAO/LP/Treasury split","operationId":"get_chains_fees_v1_chains_fees_get","parameters":[{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChainFeesResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/chains/pool_filters":{"get":{"tags":["v1 chains"],"summary":"Get pools filtered from public pool lists","operationId":"get_pool_filters_v1_chains_pool_filters_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolFiltersResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/chains/{chain}/registries":{"get":{"tags":["v1 chains"],"summary":"Get registries with pool counts and implementations","operationId":"get_chain_registries_v1_chains__chain__registries_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistriesResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/chains/{chain}":{"get":{"tags":["v1 chains"],"summary":"Get all supported contracts for chain","operationId":"get_chain_pools_endpoint_v1_chains__chain__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/gas":{"get":{"tags":["v1 gas"],"summary":"Get Ethereum gas price estimates","operationId":"get_gas_v1_gas_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GasResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/pools/{chain}/{address}/metadata":{"get":{"tags":["v1 pools"],"summary":"Get descriptive metadata for a pool on a certain chain","operationId":"get_chain_pool_metadata_v1_pools__chain___address__metadata_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolMetadataModel"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pools/{chain}/{address}":{"get":{"tags":["v1 pools"],"summary":"Get tvl/volume/fees/liquidity for a pool on a certain chain","operationId":"get_chain_pool_data_v1_pools__chain___address__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SinglePoolModel"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pools/{chain}/{lp_token}/lp_distribution":{"get":{"tags":["v1 pools"],"summary":"Get LP staking distribution (gauge holders/categories) for a pool","description":"Returns the largest indexed gauge balances, ordered descending, for a pool address.","operationId":"get_pool_lp_distribution_v1_pools__chain___lp_token__lp_distribution_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"lp_token","in":"path","required":true,"schema":{"type":"string","title":"Lp Token"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":20,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LPDistribution"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ohlc/{chain}/{address}":{"get":{"tags":["v1 ohlc"],"summary":"Get ohlc for pool","description":"This method only allows time window 300x times aggregation window, for more - try several requests","operationId":"get_ohlc_v1_ohlc__chain___address__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"main_token","in":"query","required":true,"schema":{"type":"string","title":"Main Token"}},{"name":"reference_token","in":"query","required":true,"schema":{"type":"string","title":"Reference Token"}},{"name":"agg_number","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Agg Number"}},{"name":"agg_units","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__utils__Units"}],"default":"hour","title":"Agg Units"}},{"name":"start","in":"query","required":true,"schema":{"type":"integer","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"integer","title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__ohlc__models__OhlcResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lp_ohlc/{chain}/{address}":{"get":{"tags":["v1 ohlc"],"summary":"Get ohlc for pool","description":"This method only allows time window 300x times aggregation window, for more - try several requests","operationId":"get_ohlc_v1_lp_ohlc__chain___address__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"agg_number","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Agg Number"}},{"name":"agg_units","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__utils__Units"}],"default":"hour","title":"Agg Units"}},{"name":"start","in":"query","required":true,"schema":{"type":"integer","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"integer","title":"End"}},{"name":"price_units","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/PriceUnits"}],"default":"token0","title":"Price Units"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lp_ohlc__models__OhlcResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/trades/{chain}/{address}":{"get":{"tags":["v1 trades"],"summary":"Get trades for contract","description":"This method 100 per_page trades","operationId":"get_trades_v1_trades__chain___address__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"main_token","in":"query","required":true,"schema":{"type":"string","title":"Main Token"}},{"name":"reference_token","in":"query","required":true,"schema":{"type":"string","title":"Reference Token"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}},{"name":"include_state","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradesResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/trades/all/{chain}/{address}":{"get":{"tags":["v1 trades"],"summary":"Get all trades for a pool","description":"Returns all trades for a pool across all token pairs, ordered by timestamp. This endpoint supports proper pagination across all pairs.","operationId":"get_all_trades_v1_trades_all__chain___address__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}},{"name":"include_state","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AggregatedTradesResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/liquidity/{chain}/{address}/depositors":{"get":{"tags":["v1 liquidity"],"summary":"Get all depositors for a pool","description":"Returns all users who have deposited liquidity in the pool with their net positions","operationId":"get_pool_depositors_v1_liquidity__chain___address__depositors_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepositorsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/liquidity/{chain}/{address}":{"get":{"tags":["v1 liquidity"],"summary":"Get liquidity events for contract","description":"This method 100 per_page trades","operationId":"get_liquidity_events_v1_liquidity__chain___address__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}},{"name":"include_state","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiquidityEventsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/liquidity/{chain}/{user}/positions":{"get":{"tags":["v1 liquidity"],"summary":"Get all pools where a user has an active liquidity position","description":"This method 100 per_page trades","operationId":"get_liquidity_positions_v1_liquidity__chain___user__positions_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiquidityPositionsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/volume/usd/{chain}/{address}":{"get":{"tags":["v1 volume"],"summary":"Get USD denominated volume for a specific pool","description":"This method only allows time window 300x times aggregation window, for more - try several requests","operationId":"get_volume_usd_v1_volume_usd__chain___address__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"interval","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__trading_volume__models__Units"}],"default":"day","title":"Interval"}},{"name":"start","in":"query","required":true,"schema":{"type":"integer","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"integer","title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VolumeResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/volume/{chain}/{address}":{"get":{"tags":["v1 volume"],"summary":"Get token denominated volume for a specific pair of tokens on a pool. For 3+ token pools, volume of the tokens not specified as reference or main is not included.","description":"This method only allows time window 300x times aggregation window, for more - try several requests","operationId":"get_pair_volume_v1_volume__chain___address__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"main_token","in":"query","required":true,"schema":{"type":"string","title":"Main Token"}},{"name":"reference_token","in":"query","required":true,"schema":{"type":"string","title":"Reference Token"}},{"name":"interval","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__trading_volume__models__Units"}],"default":"hour","title":"Interval"}},{"name":"start","in":"query","required":true,"schema":{"type":"integer","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"integer","title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VolumeResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/volume/{chain}":{"get":{"tags":["v1 volume"],"summary":"Get USD denominated, aggregated volume for a chain","description":"This method only allows time window 300x times aggregation window, for more - try several requests","operationId":"get_volume_v1_volume__chain__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"interval","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__trading_volume__models__Units"}],"default":"day","title":"Interval"}},{"name":"start","in":"query","required":true,"schema":{"type":"integer","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"integer","title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VolumeResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/snapshots/{chain}/{address}":{"get":{"tags":["v1 snapshots"],"summary":"Get historical snapshots for pool (snapshots are taken every 4 hour)","description":"This method will return 300 results at most. Adjust your time window accordingly. Use unit parameter to aggregate data by day/week or none for raw data.","operationId":"get_snapshots_v1_snapshots__chain___address__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"start","in":"query","required":true,"schema":{"type":"integer","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"integer","title":"End"}},{"name":"unit","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__pool_snapshots__models__Units"}],"default":"none","title":"Unit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolSnapshotResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/snapshots/{chain}/{address}/tvl":{"get":{"tags":["v1 snapshots"],"summary":"Get historical TVL, balances and lp price for pool","description":"This method will return 300 results at most. Adjust your time window accordingly","operationId":"get_tvl_snapshots_v1_snapshots__chain___address__tvl_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"start","in":"query","required":true,"schema":{"type":"integer","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"integer","title":"End"}},{"name":"unit","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__pool_snapshots__models__Units"}],"default":"day","title":"Unit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolTvlSnapshotResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/refuel/{chain}/{address}/timeseries":{"get":{"tags":["v1 refuel"],"summary":"Refuel-focused timeseries (raw | 1h | 1d)","description":"Returns event-level or aggregated data with derived refuel metrics. Paged by 100 entries.","operationId":"get_timeseries_v1_refuel__chain___address__timeseries_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}},{"name":"unit","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__refuel__models__Units"}],"default":"raw","title":"Unit"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/refuel/{chain}/{address}/il_timeseries":{"get":{"tags":["v1 refuel"],"summary":"Donation-neutral IL time series","description":"IL vs HODL (percent and USD per LP) using locked supply, plus window summary.","operationId":"get_il_timeseries_v1_refuel__chain___address__il_timeseries_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}},{"name":"initial_lp","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Initial Lp"}},{"name":"initial_usd","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Initial Usd"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ILTimeseriesResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/refuel/{chain}/{address}/donations/events":{"get":{"tags":["v1 refuel"],"summary":"Donation events","description":"Paginated donation events for a pool","operationId":"get_donations_v1_refuel__chain___address__donations_events_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DonationEventsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/refuel/{chain}/{address}/donations/leaderboard":{"get":{"tags":["v1 refuel"],"summary":"Donation leaderboard","description":"Cumulative donations per donor (USD)","operationId":"get_donations_leaderboard_v1_refuel__chain___address__donations_leaderboard_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DonationLeader"},"title":"Response Get Donations Leaderboard V1 Refuel  Chain   Address  Donations Leaderboard Get"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/refuel/chains":{"get":{"tags":["v1 refuel"],"summary":"Get all chains with donation pools","operationId":"get_donation_chains_v1_refuel_chains_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DonationChainsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/refuel/{chain}/pools":{"get":{"tags":["v1 refuel"],"summary":"Get all donation pools for chain","operationId":"get_chain_donation_pools_v1_refuel__chain__pools_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/refuel/{chain}/{address}/donations/daily":{"get":{"tags":["v1 refuel"],"summary":"Daily donation amounts in USD","description":"Aggregated daily donation amounts","operationId":"get_donations_daily_endpoint_v1_refuel__chain___address__donations_daily_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DonationsDailyResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/markets":{"get":{"tags":["v1 crvusd"],"summary":"Get information on all crvUSD markets","operationId":"get_markets_v1_crvusd_markets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__crvusd__markets__models__AllMarketsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/crvusd/markets/{chain}":{"get":{"tags":["v1 crvusd"],"summary":"Get information on all crvUSD markets","operationId":"get_markets_v1_crvusd_markets__chain__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/markets/{chain}/{controller}/borrowers":{"get":{"tags":["v1 crvusd"],"summary":"Get the largest current borrowers for a crvUSD market","description":"Returns each user's latest indexed position, sorted before pagination.","operationId":"get_crvusd_market_top_borrowers_v1_crvusd_markets__chain___controller__borrowers_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":20,"title":"Per Page"}},{"name":"sort_by","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/BorrowerSortField"}],"description":"Field to sort by","default":"debt","title":"Sort By"},"description":"Field to sort by"},{"name":"sort_direction","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/BorrowerSortDirection"}],"description":"Sort direction","default":"desc","title":"Sort Direction"},"description":"Sort direction"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__crvusd__markets__models__TopBorrowersResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/markets/{chain}/{address}/snapshots":{"get":{"tags":["v1 crvusd"],"summary":"Get historical data for a crvUSD market","operationId":"get_market_snapshots_v1_crvusd_markets__chain___address__snapshots_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"fetch_on_chain","in":"query","required":false,"schema":{"type":"boolean","description":"Flag to fetch latest data on-chain","default":false,"title":"Fetch On Chain"},"description":"Flag to fetch latest data on-chain"},{"name":"agg","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__crvusd__markets__models__Units"}],"default":"day","title":"Agg"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/Sort"}],"default":"DATE_DESC","title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketSnapshotResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/markets/{chain}/supply":{"get":{"tags":["v1 crvusd"],"summary":"Get information on supply and borrowable amounts","operationId":"get_supply_v1_crvusd_markets__chain__supply_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StableCoinSupplyResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/markets/{chain}/{controller}/loans/distribution":{"get":{"tags":["v1 crvusd"],"summary":"Show distribution of debt, borrowed and collateral assets on market","operationId":"get_distributions_v1_crvusd_markets__chain___controller__loans_distribution_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketDistributionResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/markets/{chain}/tvl":{"get":{"tags":["v1 crvusd"],"summary":"Get total TVL for all markets on a chain","operationId":"get_tvl_v1_crvusd_markets__chain__tvl_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChainTVLResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/aggregated_prices/":{"get":{"tags":["v1 crvusd"],"summary":"Get hourly aggregated crvUSD oracle prices","operationId":"get_crvusd_aggregated_prices_v1_crvusd_aggregated_prices__get","parameters":[{"name":"agg_number","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Agg Number"}},{"name":"agg_units","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__utils__Units"}],"default":"hour","title":"Agg Units"}},{"name":"start","in":"query","required":true,"schema":{"type":"integer","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"integer","title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AggregatedPricesResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/collateral_events/{chain}/{controller}/{user}":{"get":{"tags":["v1 crvusd"],"summary":"Get collateral/loan changes for user for specific controllers","operationId":"get_collateral_v1_crvusd_collateral_events__chain___controller___user__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}},{"name":"pagination","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pagination"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"}},{"name":"new_tx","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Tx"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__crvusd__collateral_events__models__CollateralEventsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/pegkeepers/{chain}":{"get":{"tags":["v1 crvusd","v1 pegkeepers"],"summary":"Get information on all peg keepers","operationId":"get_keepers_v1_crvusd_pegkeepers__chain__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PegKeeperEntityResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/pegkeepers/{chain}/{address}":{"get":{"tags":["v1 crvusd","v1 pegkeepers"],"summary":"Get event history for a specified peg keeper","operationId":"get_events_v1_crvusd_pegkeepers__chain___address__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"pagination","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Pagination"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PegKeeperEventResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/llamma_ohlc/{chain}/{address}":{"get":{"tags":["v1 crvusd","v1 ohlc"],"summary":"Get ohlc for llamma","description":"This method only allows time window 300x times aggregation window, for more - try several requests","operationId":"get_llamma_ohlc_v1_crvusd_llamma_ohlc__chain___address__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"agg_number","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Agg Number"}},{"name":"agg_units","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__utils__Units"}],"default":"hour","title":"Agg Units"}},{"name":"start","in":"query","required":true,"schema":{"type":"integer","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"integer","title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__crvusd__llamma_ohlc__models__OhlcResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/oracle_ohlc/{chain}/{controller}":{"get":{"tags":["v1 crvusd","v1 ohlc"],"summary":"Get ohlc for controller oracle","description":"This method only allows time window 300x times aggregation window, for more - try several requests","operationId":"get_oracle_ohlc_v1_crvusd_oracle_ohlc__chain___controller__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"agg_number","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Agg Number"}},{"name":"agg_units","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__utils__Units"}],"default":"hour","title":"Agg Units"}},{"name":"start","in":"query","required":true,"schema":{"type":"integer","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"integer","title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__crvusd__oracle_ohlc__models__OracleOhlcResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/llamma_trades/{chain}/{address}":{"get":{"tags":["v1 crvusd","v1 trades"],"summary":"Get trades for llamma contract","description":"This method 100 per_page trades","operationId":"get_llamma_trades_v1_crvusd_llamma_trades__chain___address__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__crvusd__llamma_trades__models__LlammaTradesResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/llamma_events/{chain}/{address}":{"get":{"tags":["v1 crvusd","v1 liquidity"],"summary":"Get events for llamma contract","description":"This method maxes at 100 per_page events. Deposit amount_usd and withdrawal amount_borrowed_usd/amount_collateral_usd value token amounts at the event time. Missing prices fall back to the stored LLAMMA oracle with a USD anchor (crvUSD defaults to $1 when unpriced). Unavailable USD values are null; zero amounts are 0.","operationId":"get_llamma_events_v1_crvusd_llamma_events__chain___address__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__crvusd__llamma_events__models__LlammaEventsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/users/all/{user}":{"get":{"tags":["v1 crvusd"],"summary":"Get all crvUSD markets on which a user has held a position","operationId":"get_user_all_markets_v1_crvusd_users_all__user__get","parameters":[{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}},{"name":"include_closed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Closed"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__crvusd__users__models__FullUserMarketsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/users/{chain}/{user}":{"get":{"tags":["v1 crvusd"],"summary":"Get all crvUSD markets on which a user has held a position","operationId":"get_user_markets_v1_crvusd_users__chain___user__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}},{"name":"include_closed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Closed"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__crvusd__users__models__UserMarketResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/users/{chain}/{user}/{controller}/stats":{"get":{"tags":["v1 crvusd"],"summary":"Get a user's recent general metrics for a particular lending market","operationId":"get_user_market_stats_v1_crvusd_users__chain___user___controller__stats_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__crvusd__users__models__UserSnapshot"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/users/{chain}/{user}/{controller}/snapshots":{"get":{"tags":["v1 crvusd"],"summary":"Get a user's position's snapshots for a particular lending market","operationId":"get_user_market_snapshots_v1_crvusd_users__chain___user___controller__snapshots_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__crvusd__users__models__UserSnapshotResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/users/{chain}/{controller}/users":{"get":{"tags":["v1 crvusd"],"summary":"Get all of a crvUSD market's users with their first and last snapshot dates","operationId":"get_crvusd_market_user_list_v1_crvusd_users__chain___controller__users_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}},{"name":"sort_by","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__crvusd__users__models__UserSortField"}],"default":"debt","title":"Sort By"}},{"name":"sort_direction","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/SortDirection"}],"default":"desc","title":"Sort Direction"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__crvusd__users__models__UserListResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/savings/{user}/stats":{"get":{"tags":["v1 crvusd","v1 savings"],"summary":"Get a user's descriptive statistics","operationId":"get_user_stats_v1_crvusd_savings__user__stats_get","parameters":[{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavingsUserStatsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/savings/{user}/events":{"get":{"tags":["v1 crvusd","v1 savings"],"summary":"Get a user's deposit/withdrawal events","operationId":"get_user_events_v1_crvusd_savings__user__events_get","parameters":[{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavingsEventResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/savings/events":{"get":{"tags":["v1 crvusd","v1 savings"],"summary":"Get all deposit/withdrawal events","operationId":"get_all_events_v1_crvusd_savings_events_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavingsEventResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/savings/yield":{"get":{"tags":["v1 crvusd","v1 savings"],"summary":"Retrieve historical yield, supply, price for scrvUsd (300 entries max)","operationId":"get_yield_v1_crvusd_savings_yield_get","parameters":[{"name":"agg_number","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Agg Number"}},{"name":"agg_units","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__utils__Units"}],"default":"hour","title":"Agg Units"}},{"name":"start","in":"query","required":true,"schema":{"type":"integer","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"integer","title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YieldHistoryResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/savings/revenue":{"get":{"tags":["v1 crvusd","v1 savings"],"summary":"Retrieve historical and total revenue distribution for scrvUsd (max 300 entries per page)","operationId":"get_revenue_v1_crvusd_savings_revenue_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevenueResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/savings/statistics":{"get":{"tags":["v1 crvusd","v1 savings"],"summary":"Get current statistics of scrvUSD","operationId":"get_stats_v1_crvusd_savings_statistics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavingsStatsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/crvusd/yield_basis/{chain}/supply":{"get":{"tags":["v1 crvusd"],"summary":"Get current crvUSD yield basis supply information","operationId":"get_supply_v1_crvusd_yield_basis__chain__supply_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YieldBasisSupplyResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/yield_basis/{chain}/history":{"get":{"tags":["v1 crvusd"],"summary":"Get historical crvUSD yield basis snapshots","operationId":"get_history_v1_crvusd_yield_basis__chain__history_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YieldBasisHistoryResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/liquidations/{chain}/{controller}/soft_liquidation_ratio":{"get":{"tags":["v1 crvusd"],"summary":"Get proportion of users in soft liquidation for specific crvusd market","operationId":"get_soft_liq_ratio_v1_crvusd_liquidations__chain___controller__soft_liquidation_ratio_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__crvusd__liquidations__models__HistoricalSoftLossResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/liquidations/{chain}/{controller}/history/detailed":{"get":{"tags":["v1 crvusd"],"summary":"Get list of detailed liquidations for specific crvusd market","operationId":"get_detailed_liq_history_v1_crvusd_liquidations__chain___controller__history_detailed_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__crvusd__liquidations__models__LiquidationDetailsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/liquidations/{chain}/{controller}/history/aggregated":{"get":{"tags":["v1 crvusd"],"summary":"Get counts and value of hard and self liquidation for specific crvusd market","operationId":"get_liq_history_v1_crvusd_liquidations__chain___controller__history_aggregated_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoricalLiquidationsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/liquidations/{chain}/history/aggregated":{"get":{"tags":["v1 crvusd"],"summary":"Get count and value of hard and self liquidation for all crvusd markets","operationId":"get_liq_history_v1_crvusd_liquidations__chain__history_aggregated_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoricalLiquidationsGlobalResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/liquidations/{chain}/{controller}/losses/history":{"get":{"tags":["v1 crvusd"],"summary":"Get historical absolute and relative losses from soft liquidation for a specified crvusd markets","operationId":"get_losses_history_v1_crvusd_liquidations__chain___controller__losses_history_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoricalLossesResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/liquidations/{chain}/{controller}/health/distribution":{"get":{"tags":["v1 crvusd"],"summary":"Show distribution of debt, borrowed and collateral assets per health decile","operationId":"get_health_v1_crvusd_liquidations__chain___controller__health_distribution_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__crvusd__liquidations__models__HealthDistributionResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/liquidations/{chain}/{controller}/cr/distribution":{"get":{"tags":["v1 crvusd"],"summary":"Show distribution of debt, borrowed and collateral assets per collateral ratio decile","operationId":"get_crs_v1_crvusd_liquidations__chain___controller__cr_distribution_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__crvusd__liquidations__models__CollateralRatioDistributionResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/liquidations/{chain}/{controller}/overview":{"get":{"tags":["v1 crvusd"],"summary":"Get overview on health of a crvusd markets","operationId":"get_overview_v1_crvusd_liquidations__chain___controller__overview_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"fetch_on_chain","in":"query","required":false,"schema":{"type":"boolean","description":"Flag to fetch latest data on-chain","default":false,"title":"Fetch On Chain"},"description":"Flag to fetch latest data on-chain"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__crvusd__liquidations__models__LiquidationOverview"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/liquidations/bad_debt":{"get":{"tags":["v1 crvusd"],"summary":"Get bad debt information for each individual crvusd market","operationId":"get_bad_debt_v1_crvusd_liquidations_bad_debt_get","parameters":[{"name":"fetch_on_chain","in":"query","required":false,"schema":{"type":"boolean","description":"Flag to fetch latest data on-chain","default":false,"title":"Fetch On Chain"},"description":"Flag to fetch latest data on-chain"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__crvusd__liquidations__models__MarketBadDebtResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/liquidations/{chain}/{controller}/losses_per_band_range":{"get":{"tags":["v1 crvusd"],"summary":"Get loss statistic per band range","operationId":"get_range_stats_v1_crvusd_liquidations__chain___controller__losses_per_band_range_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}},{"name":"statistic","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/LossStatistic"}],"default":"mean","title":"Statistic"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RangeLossResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/liquidations/{chain}/{controller}/hard/users":{"get":{"tags":["v1 crvusd"],"summary":"Get the history of users affected by hard liquidations vs unique users","operationId":"get_user_liq_history_v1_crvusd_liquidations__chain___controller__hard_users_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HardLiquidatedUsersResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crvusd/liquidations/{chain}/{controller}/hard/total":{"get":{"tags":["v1 crvusd"],"summary":"Get the total cumulative value of hard liquidation for a controller","operationId":"get_sum_liq_v1_crvusd_liquidations__chain___controller__hard_total_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HardLiquidatationSumResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/gauges/overview":{"get":{"tags":["v1 dao"],"summary":"Get descriptive metadata for all gauges","operationId":"get_chain_gauge_metadata_v1_dao_gauges_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GaugesResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/dao/votes/overview":{"get":{"tags":["v1 dao"],"summary":"Get voter participation stats for each epoch","operationId":"get_vote_overview_v1_dao_votes_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EpochVotesDetailsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/dao/gauges/votes/user/{user}":{"get":{"tags":["v1 dao"],"summary":"Get a user's gauge voting history","operationId":"get_user_gauge_votes_v1_dao_gauges_votes_user__user__get","parameters":[{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}},{"name":"tx_hash","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tx Hash"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserVoteResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/proposals/votes/user/{user}":{"get":{"tags":["v1 dao"],"summary":"Get a user's voting history on proposals","operationId":"get_user_proposal_vote_history_v1_dao_proposals_votes_user__user__get","parameters":[{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}},{"name":"pagination","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Pagination"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProposalVoteHistoryResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/proposals/vote/user/{user}/{type}/{vote_id}":{"get":{"tags":["v1 dao"],"summary":"Get the details of a user's vote on a specific proposal","operationId":"get_user_specific_vote_v1_dao_proposals_vote_user__user___type___vote_id__get","parameters":[{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}},{"name":"vote_id","in":"path","required":true,"schema":{"type":"integer","title":"Vote Id"}},{"name":"type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ProposalType"}},{"name":"tx_hash","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tx Hash"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProposalVoteHistory"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/pools/{chain}/{pool}/gauge":{"get":{"tags":["v1 dao"],"summary":"Get a pool's gauge (if it exists)","operationId":"get_gauge_for_pool_v1_dao_pools__chain___pool__gauge_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"pool","in":"path","required":true,"schema":{"type":"string","title":"Pool"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolGauge"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/lending/{chain}/{controller}/gauge":{"get":{"tags":["v1 dao"],"summary":"Get a market's gauge (if it exists)","operationId":"get_gauge_for_market_v1_dao_lending__chain___controller__gauge_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolGauge"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/gauges/{gauge}/votes":{"get":{"tags":["v1 dao"],"summary":"Get the history of votes for a specific gauge","operationId":"get_votes_for_gauge_v1_dao_gauges__gauge__votes_get","parameters":[{"name":"gauge","in":"path","required":true,"schema":{"type":"string","title":"Gauge"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GaugeVoteResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/gauges/{gauge}/metadata":{"get":{"tags":["v1 dao"],"summary":"Get gauge metadata and info about the associated pool - if any","operationId":"get_pool_for_gauge_v1_dao_gauges__gauge__metadata_get","parameters":[{"name":"gauge","in":"path","required":true,"schema":{"type":"string","title":"Gauge"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GaugeData"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/gauges/{gauge}/weight_history":{"get":{"tags":["v1 dao"],"summary":"Get the historical weights of a specific gauge","operationId":"get_weights_for_gauge_v1_dao_gauges__gauge__weight_history_get","parameters":[{"name":"gauge","in":"path","required":true,"schema":{"type":"string","title":"Gauge"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GaugeWeightSnapshotResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/gauges/{gauge}/deployment":{"get":{"tags":["v1 dao"],"summary":"Get information about the deployment of a specific gauge","operationId":"get_deployment_v1_dao_gauges__gauge__deployment_get","parameters":[{"name":"gauge","in":"path","required":true,"schema":{"type":"string","title":"Gauge"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GaugeDeploymentTxModel"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/locks/{user}":{"get":{"tags":["v1 dao"],"summary":"Get the history of CRV locks of a particular user","operationId":"get_locks_v1_dao_locks__user__get","parameters":[{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserVoteReponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/locks/daily/{days}":{"get":{"tags":["v1 dao"],"summary":"Get the amount of CRV locked daily over the last X days","operationId":"daily_locks_v1_dao_locks_daily__days__get","parameters":[{"name":"days","in":"path","required":true,"schema":{"type":"integer","title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailyLocksResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/supply/{days}":{"get":{"tags":["v1 dao"],"summary":"Get the historical breakdown of CRV supply over the last X days","operationId":"get_supply_v1_dao_supply__days__get","parameters":[{"name":"days","in":"path","required":true,"schema":{"type":"integer","title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplySnapshotResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/lockers/{top}":{"get":{"tags":["v1 dao"],"summary":"Returns the top X largest lockers by voting power","operationId":"get_top_lockers_v1_dao_lockers__top__get","parameters":[{"name":"top","in":"path","required":true,"schema":{"type":"integer","title":"Top"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserLockReponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/lockers":{"get":{"tags":["v1 dao"],"summary":"Returns the top X largest lockers by voting power","operationId":"get_lockers_v1_dao_lockers_get","parameters":[{"name":"pagination","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Pagination"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserLockPaginatedReponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/proposals":{"get":{"tags":["v1 dao"],"summary":"Returns DAO proposals","operationId":"get_dao_proposals_v1_dao_proposals_get","parameters":[{"name":"search_string","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search String"}},{"name":"pagination","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Pagination"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"status_filter","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/ProposalStatusFilter"}],"default":"all","title":"Status Filter"}},{"name":"type_filter","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/ProposalTypeFilter"}],"default":"all","title":"Type Filter"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DaoProposalDataPaginatedReponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/proposals/details/{type}/{vote_id}":{"get":{"tags":["v1 dao"],"summary":"Get details about a specific proposal","operationId":"get_details_v1_dao_proposals_details__type___vote_id__get","parameters":[{"name":"type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ProposalType"}},{"name":"vote_id","in":"path","required":true,"schema":{"type":"integer","title":"Vote Id"}},{"name":"tx_hash","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tx Hash"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetailedDaoProposalData"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/fees/distributions":{"get":{"tags":["v1 revenue"],"summary":"Get historical fee distributions","operationId":"get_distributions_v1_dao_fees_distributions_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeeDistributionResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/fees/crvusd/weekly":{"get":{"tags":["v1 revenue"],"summary":"Get weekly fees (including currently pending) from crvUSD markets","operationId":"get_crvusd_fees_v1_dao_fees_crvusd_weekly_get","parameters":[{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrvUsdWeeklyFees"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/fees/pools/weekly":{"get":{"tags":["v1 revenue"],"summary":"Get weekly fees (including currently pending) from pools across all chains","operationId":"get_pool_fees_v1_dao_fees_pools_weekly_get","parameters":[{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolsWeeklyFees"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/fees/{chain}/pending":{"get":{"tags":["v1 revenue"],"summary":"Get pending admin fees on all pools for a chain","operationId":"get_pool_pending_fees_v1_dao_fees__chain__pending_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingPoolFeesResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/fees/settlements":{"get":{"tags":["v1 revenue"],"summary":"Get information on the latest settlements of fees via CoWSwap prior to the given date","operationId":"get_cow_v1_dao_fees_settlements_get","parameters":[{"name":"timestamp","in":"query","required":false,"schema":{"type":"integer","description":"Unix timestamp to filter settlements","default":1790871626,"title":"Timestamp"},"description":"Unix timestamp to filter settlements"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CowSettlementResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dao/fees/collected":{"get":{"tags":["v1 revenue"],"summary":"Get the list of tokens collected in the Fee Collector","operationId":"get_collected_fees_v1_dao_fees_collected_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardFeeResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/dao/fees/staged":{"get":{"tags":["v1 revenue"],"summary":"Get the list of tokens collected in the Fee Burner","operationId":"get_staged_fees_v1_dao_fees_staged_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardFeeResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/usd_price/{chain}":{"get":{"tags":["v1 trades"],"summary":"Get USD denominated price for all tokens in chain","operationId":"get_token_prices_usd_endpoint_v1_usd_price__chain__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChainResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/usd_price/{chain}/{address}":{"get":{"tags":["v1 trades"],"summary":"Get USD denominated price for token","operationId":"get_token_price_usd_v1_usd_price__chain___address__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleTokenResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/usd_price/{chain}/{address}/history":{"get":{"tags":["v1 trades"],"summary":"Get USD denominated price history for token","operationId":"get_historical_token_price_usd_v1_usd_price__chain___address__history_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"interval","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__utils__Units"}],"default":"day","title":"Interval"}},{"name":"start","in":"query","required":true,"schema":{"type":"integer","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"integer","title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoricalPriceResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/markets":{"get":{"tags":["v1 lending"],"summary":"Get information on all lending markets","operationId":"get_markets_v1_lending_markets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__markets__models__AllMarketsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/lending/markets/{chain}":{"get":{"tags":["v1 lending"],"summary":"Get information on all lending markets","operationId":"get_markets_v1_lending_markets__chain__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LendingMarketResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/markets/{chain}/{controller}/borrowers":{"get":{"tags":["v1 lending"],"summary":"Get the largest current borrowers for a lending market","description":"Returns each user's latest indexed position, sorted before pagination.","operationId":"get_lending_market_top_borrowers_v1_lending_markets__chain___controller__borrowers_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":20,"title":"Per Page"}},{"name":"sort_by","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/BorrowerSortField"}],"description":"Field to sort by","default":"debt","title":"Sort By"},"description":"Field to sort by"},{"name":"sort_direction","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/BorrowerSortDirection"}],"description":"Sort direction","default":"desc","title":"Sort Direction"},"description":"Sort direction"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__markets__models__TopBorrowersResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/markets/{chain}/{controller}/snapshots":{"get":{"tags":["v1 lending"],"summary":"Get historical data for a lending market","operationId":"get_lending_market_snapshots_v1_lending_markets__chain___controller__snapshots_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"fetch_on_chain","in":"query","required":false,"schema":{"type":"boolean","description":"Flag to fetch latest data on-chain or from snapshots","default":false,"title":"Fetch On Chain"},"description":"Flag to fetch latest data on-chain or from snapshots"},{"name":"agg","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__lending__markets__models__Units"}],"default":"day","title":"Agg"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"sort_by","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/Sort"}],"default":"DATE_DESC","title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LendingMarketSnapshotResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/markets/{chain}/{controller}/rate_curve":{"get":{"tags":["v1 lending"],"summary":"Get the interest rate curve across utilization levels for a lending market","operationId":"get_lending_rate_curve_v1_lending_markets__chain___controller__rate_curve_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateCurveResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/markets/{chain}/{controller}/loans/distribution":{"get":{"tags":["v1 lending"],"summary":"Show distribution of debt, borrowed and collateral assets on market","operationId":"get_distributions_v1_lending_markets__chain___controller__loans_distribution_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LendingMarketDistributionResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/markets/{chain}/tvl":{"get":{"tags":["v1 lending"],"summary":"Get total TVL for all lending markets on a chain","operationId":"get_tvl_v1_lending_markets__chain__tvl_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChainTVLResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/llamma_ohlc/{chain}/{address}":{"get":{"tags":["v1 lending","v1 ohlc"],"summary":"Get ohlc for lending llamma","description":"This method only allows time window 300x times aggregation window, for more - try several requests","operationId":"get_llamma_ohlc_v1_lending_llamma_ohlc__chain___address__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"agg_number","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Agg Number"}},{"name":"agg_units","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__utils__Units"}],"default":"hour","title":"Agg Units"}},{"name":"start","in":"query","required":true,"schema":{"type":"integer","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"integer","title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__llamma_ohlc__models__OhlcResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/oracle_ohlc/{chain}/{controller}":{"get":{"tags":["v1 lending","v1 ohlc"],"summary":"Get ohlc for controller oracle","description":"This method only allows time window 300x times aggregation window, for more - try several requests","operationId":"get_oracle_ohlc_v1_lending_oracle_ohlc__chain___controller__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"agg_number","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Agg Number"}},{"name":"agg_units","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__utils__Units"}],"default":"hour","title":"Agg Units"}},{"name":"start","in":"query","required":true,"schema":{"type":"integer","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"integer","title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__oracle_ohlc__models__OracleOhlcResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/llamma_events/{chain}/{address}":{"get":{"tags":["v1 lending"],"summary":"Get events for lending llamma contract","description":"This method maxes at 100 per_page events. Deposit amount_usd and withdrawal amount_borrowed_usd/amount_collateral_usd value token amounts at the event time. Missing prices fall back to the stored LLAMMA oracle with a USD anchor (crvUSD defaults to $1 when unpriced). Unavailable USD values are null; zero amounts are 0.","operationId":"get_llamma_events_v1_lending_llamma_events__chain___address__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__llamma_events__models__LlammaEventsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/llamma_trades/{chain}/{address}":{"get":{"tags":["v1 lending"],"summary":"Get trades for lending llamma contract","description":"This method 100 per_page trades","operationId":"get_llamma_trades_v1_lending_llamma_trades__chain___address__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__llamma_trades__models__LlammaTradesResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/collateral_events/{chain}/{controller}/{user}":{"get":{"tags":["v1 lending"],"summary":"Get collateral/loan changes for user for specific lending controllers","operationId":"get_collateral_v1_lending_collateral_events__chain___controller___user__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}},{"name":"pagination","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pagination"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"}},{"name":"new_tx","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Tx"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__collateral_events__models__CollateralEventsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/liquidations/{chain}/{controller}/soft_liquidation_ratio":{"get":{"tags":["v1 lending"],"summary":"Get proportion of users in soft liquidation for specific lending market","operationId":"get_soft_liq_ratio_v1_lending_liquidations__chain___controller__soft_liquidation_ratio_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__liquidations__models__HistoricalSoftLossResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/liquidations/{chain}/{controller}/history/detailed":{"get":{"tags":["v1 lending"],"summary":"Get list of detailed liquidations for specific lending market","operationId":"get_detailed_liq_history_v1_lending_liquidations__chain___controller__history_detailed_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__liquidations__models__LiquidationDetailsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/liquidations/{chain}/{controller}/history/aggregated":{"get":{"tags":["v1 lending"],"summary":"Get counts and value of hard and self liquidation for specific lending market","operationId":"get_liq_history_v1_lending_liquidations__chain___controller__history_aggregated_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoricalLiquidationsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/liquidations/{chain}/history/aggregated":{"get":{"tags":["v1 lending"],"summary":"Get count and value of hard and self liquidation for all lending markets","operationId":"get_liq_history_v1_lending_liquidations__chain__history_aggregated_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoricalLiquidationsGlobalResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/liquidations/{chain}/{controller}/losses/history":{"get":{"tags":["v1 lending"],"summary":"Get historical absolute and relative losses from soft liquidation for a specified lending markets","operationId":"get_losses_history_v1_lending_liquidations__chain___controller__losses_history_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoricalLossesResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/liquidations/{chain}/{controller}/health/distribution":{"get":{"tags":["v1 lending"],"summary":"Show distribution of debt, borrowed and collateral assets per health decile","operationId":"get_health_v1_lending_liquidations__chain___controller__health_distribution_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__liquidations__models__HealthDistributionResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/liquidations/{chain}/{controller}/cr/distribution":{"get":{"tags":["v1 lending"],"summary":"Show distribution of debt, borrowed and collateral assets per collateral ratio decile","operationId":"get_crs_v1_lending_liquidations__chain___controller__cr_distribution_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__liquidations__models__CollateralRatioDistributionResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/liquidations/{chain}/{controller}/overview":{"get":{"tags":["v1 lending"],"summary":"Get overview on health of a lending markets","operationId":"get_overview_v1_lending_liquidations__chain___controller__overview_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"fetch_on_chain","in":"query","required":false,"schema":{"type":"boolean","description":"Flag to fetch latest data on-chain","default":false,"title":"Fetch On Chain"},"description":"Flag to fetch latest data on-chain"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__liquidations__models__LiquidationOverview"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/liquidations/bad_debt":{"get":{"tags":["v1 lending"],"summary":"Get bad debt information for each individual llama lend market","operationId":"get_bad_debt_v1_lending_liquidations_bad_debt_get","parameters":[{"name":"fetch_on_chain","in":"query","required":false,"schema":{"type":"boolean","description":"Flag to fetch latest data on-chain","default":false,"title":"Fetch On Chain"},"description":"Flag to fetch latest data on-chain"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__liquidations__models__MarketBadDebtResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/liquidations/{chain}/{controller}/losses_per_band_range":{"get":{"tags":["v1 lending"],"summary":"Get loss statistic per band range","operationId":"get_range_stats_v1_lending_liquidations__chain___controller__losses_per_band_range_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}},{"name":"statistic","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/LossStatistic"}],"default":"mean","title":"Statistic"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RangeLossResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/liquidations/{chain}/{controller}/hard/users":{"get":{"tags":["v1 lending"],"summary":"Get the history of users affected by hard liquidations vs unique users","operationId":"get_user_liq_history_v1_lending_liquidations__chain___controller__hard_users_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HardLiquidatedUsersResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/liquidations/{chain}/{controller}/hard/total":{"get":{"tags":["v1 lending"],"summary":"Get the total cumulative value of hard liquidation for a controller","operationId":"get_sum_liq_v1_lending_liquidations__chain___controller__hard_total_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HardLiquidatationSumResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/users/lending_positions/all/{user}":{"get":{"tags":["v1 lending"],"summary":"Get all lending markets on which a user has a lending position","operationId":"get_all_user_lending_markets_v1_lending_users_lending_positions_all__user__get","parameters":[{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}},{"name":"include_closed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Closed"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FullUserLendingMarketsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/users/lending_positions/{chain}/{user}":{"get":{"tags":["v1 lending"],"summary":"Get all lending markets on which a user has a lending position","operationId":"get_user_lending_markets_v1_lending_users_lending_positions__chain___user__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}},{"name":"include_closed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Closed"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserLendingMarketResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/users/all/{user}":{"get":{"tags":["v1 lending"],"summary":"Get all lending markets on which a user has held a borrowing position","operationId":"get_all_user_markets_v1_lending_users_all__user__get","parameters":[{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}},{"name":"include_closed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Closed"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__users__models__FullUserMarketsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/users/{chain}/{user}":{"get":{"tags":["v1 lending"],"summary":"Get all lending markets on which a user has held a borrowing position","operationId":"get_user_markets_v1_lending_users__chain___user__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}},{"name":"include_closed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Closed"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__users__models__UserMarketResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/users/{chain}/{user}/{controller}/stats":{"get":{"tags":["v1 lending"],"summary":"Get a user's recent general metrics for a particular lending market","operationId":"get_user_market_stats_v1_lending_users__chain___user___controller__stats_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__users__models__UserSnapshot"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/users/{chain}/{user}/{controller}/snapshots":{"get":{"tags":["v1 lending"],"summary":"Get a user's position's snapshots for a particular lending market","operationId":"get_user_market_snapshots_v1_lending_users__chain___user___controller__snapshots_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__users__models__UserSnapshotResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/users/{chain}/{controller}/users":{"get":{"tags":["v1 lending"],"summary":"Get all of a market's lending users with their first and last snapshot dates","operationId":"get_market_user_list_v1_lending_users__chain___controller__users_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"controller","in":"path","required":true,"schema":{"type":"string","title":"Controller"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}},{"name":"sort_by","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/api__routes__v1__lending__users__models__UserSortField"}],"default":"debt","title":"Sort By"}},{"name":"sort_direction","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/SortDirection"}],"default":"desc","title":"Sort Direction"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__users__models__UserListResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/chains/":{"get":{"tags":["v1 lending","v1 chains"],"summary":"Get all supported chains for lending stats","operationId":"get_chains_v1_lending_chains__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routes__v1__lending__chains__models__ChainsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/lending/vaults/{chain}/{vault}/depositors":{"get":{"tags":["v1 lending"],"summary":"Get the largest current share holders for a lending vault","description":"Returns indexed vault-share balances by beneficial owner, including shares deposited in the market gauge, sorted before pagination.","operationId":"get_vault_depositors_v1_lending_vaults__chain___vault__depositors_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"vault","in":"path","required":true,"schema":{"type":"string","title":"Vault"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":20,"title":"Per Page"}},{"name":"sort_by","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/VaultDepositorSortField"}],"description":"Field to sort by","default":"shares","title":"Sort By"},"description":"Field to sort by"},{"name":"sort_direction","in":"query","required":false,"schema":{"allOf":[{"$ref":"#/components/schemas/VaultDepositorSortDirection"}],"description":"Sort direction","default":"desc","title":"Sort Direction"},"description":"Sort direction"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VaultDepositorsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/vaults/{chain}/{vault}/{user}":{"get":{"tags":["v1 lending"],"summary":"Get all events for a lending vault user","operationId":"get_user_vault_events_v1_lending_vaults__chain___vault___user__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"vault","in":"path","required":true,"schema":{"type":"string","title":"Vault"}},{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VaultEventResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/vaults/{chain}/{vault}/earnings/{user}":{"get":{"tags":["v1 lending"],"summary":"Get earnings and related metrics for a lending vault user","operationId":"get_user_vault_earnings_v1_lending_vaults__chain___vault__earnings__user__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"vault","in":"path","required":true,"schema":{"type":"string","title":"Vault"}},{"name":"user","in":"path","required":true,"schema":{"type":"string","title":"User"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Start timestamp (Unix)","title":"Start"},"description":"Start timestamp (Unix)"},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"End timestamp (Unix)","title":"End"},"description":"End timestamp (Unix)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VaultEarnings"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lending/vault_events/{chain}/{vault}":{"get":{"tags":["v1 lending"],"summary":"Get liquidity events for a lending vault","description":"Returns deposits and withdrawals across all users, newest first. Transfers are excluded. Assets and shares are in token units. This method maxes at 100 per_page events.","operationId":"get_vault_events_v1_lending_vault_events__chain___vault__get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"vault","in":"path","required":true,"schema":{"type":"string","title":"Vault"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VaultEventsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/oracles/all":{"get":{"tags":["v1 oracles"],"summary":"Get last updated block & hash on oracle contracts across all chains","operationId":"get_oracle_stats_v1_oracles_all_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OracleListResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/yield_basis/{chain}/pools":{"get":{"tags":["v1 yield_basis"],"summary":"Get all Yield Basis pools for a chain","operationId":"get_yb_pools_endpoint_v1_yield_basis__chain__pools_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YBPoolsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/yield_basis/{chain}/{pool_address}/volume":{"get":{"tags":["v1 yield_basis"],"summary":"Get transactions with volume and adjacent pools for a YB pool (last 7 days)","operationId":"get_yb_pool_volume_endpoint_v1_yield_basis__chain___pool_address__volume_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}},{"name":"pool_address","in":"path","required":true,"schema":{"type":"string","title":"Pool Address"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YBPoolVolumeResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/yield_basis/{chain}/volume":{"get":{"tags":["v1 yield_basis"],"summary":"Get aggregated volume and fees for all YB pools (24h and 7d)","operationId":"get_yb_aggregated_volume_endpoint_v1_yield_basis__chain__volume_get","parameters":[{"name":"chain","in":"path","required":true,"schema":{"type":"string","title":"Chain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YBAggregatedVolumeResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ping":{"get":{"tags":["Health checks"],"summary":"Ping","operationId":"ping_ping_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AdjacentPool":{"properties":{"address":{"type":"string","title":"Address"},"name":{"type":"string","title":"Name"}},"type":"object","required":["address","name"],"title":"AdjacentPool"},"AggregatedPriceModel":{"properties":{"timestamp":{"type":"integer","title":"Timestamp"},"price":{"type":"number","title":"Price"}},"type":"object","required":["timestamp","price"],"title":"AggregatedPriceModel"},"AggregatedPricesResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AggregatedPriceModel"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"AggregatedPricesResponse"},"AggregatedTrade":{"properties":{"sold_id":{"type":"integer","title":"Sold Id","description":"Pool index of token sold"},"bought_id":{"type":"integer","title":"Bought Id","description":"Pool index of token bought"},"tokens_sold":{"type":"number","title":"Tokens Sold"},"tokens_sold_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tokens Sold Usd"},"tokens_bought":{"type":"number","title":"Tokens Bought"},"tokens_bought_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tokens Bought Usd"},"price":{"type":"number","title":"Price"},"block_number":{"type":"integer","title":"Block Number"},"log_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Log Index","description":"Index of the trade log within its transaction"},"time":{"type":"string","format":"date-time","title":"Time"},"transaction_hash":{"type":"string","title":"Transaction Hash"},"buyer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyer"},"fee":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fee"},"usd_fee":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Usd Fee"},"token_sold":{"$ref":"#/components/schemas/api__routes__v1__trades__models__Token"},"token_bought":{"$ref":"#/components/schemas/api__routes__v1__trades__models__Token"},"pool_state":{"anyOf":[{"$ref":"#/components/schemas/PoolStateSnapshotModel"},{"type":"null"}]}},"type":"object","required":["sold_id","bought_id","tokens_sold","tokens_bought","price","block_number","time","transaction_hash","token_sold","token_bought"],"title":"AggregatedTrade"},"AggregatedTradesResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"count":{"type":"integer","title":"Count"},"data":{"items":{"$ref":"#/components/schemas/AggregatedTrade"},"type":"array","title":"Data"}},"type":"object","required":["chain","address","page","per_page","count","data"],"title":"AggregatedTradesResponse"},"BlockHeader":{"properties":{"block_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Block Hash"},"parent_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Hash"},"state_root":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Root"},"block_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Block Number"},"timestamp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timestamp"}},"type":"object","required":["block_hash","parent_hash","state_root","block_number","timestamp"],"title":"BlockHeader"},"BorrowerSortDirection":{"type":"string","enum":["asc","desc"],"title":"BorrowerSortDirection"},"BorrowerSortField":{"type":"string","enum":["address","debt","debt_usd","collateral","collateral_usd","health","soft_liquidation","percent_of_total_debt"],"title":"BorrowerSortField"},"Chain":{"properties":{"name":{"type":"string","title":"Name"},"pool_tvl":{"type":"number","title":"Pool Tvl","default":0.0},"lending_tvl":{"type":"number","title":"Lending Tvl","default":0.0}},"type":"object","required":["name"],"title":"Chain"},"ChainFeeStats":{"properties":{"trading_volume":{"type":"number","title":"Trading Volume"},"liquidity_volume":{"type":"number","title":"Liquidity Volume"},"total_volume":{"type":"number","title":"Total Volume"},"trading_fees":{"type":"number","title":"Trading Fees"},"liquidity_fees":{"type":"number","title":"Liquidity Fees"},"total_fees":{"type":"number","title":"Total Fees"},"fees_to_lp":{"type":"number","title":"Fees To Lp"},"fees_to_dao":{"type":"number","title":"Fees To Dao"},"fees_to_treasury":{"type":"number","title":"Fees To Treasury"},"lp_fees_yb":{"type":"number","title":"Lp Fees Yb"},"chain":{"type":"string","title":"Chain"}},"type":"object","required":["trading_volume","liquidity_volume","total_volume","trading_fees","liquidity_fees","total_fees","fees_to_lp","fees_to_dao","fees_to_treasury","lp_fees_yb","chain"],"title":"ChainFeeStats"},"ChainFeesResponse":{"properties":{"start":{"type":"integer","title":"Start"},"end":{"type":"integer","title":"End"},"aggregated":{"$ref":"#/components/schemas/FeeStats"},"chains":{"items":{"$ref":"#/components/schemas/ChainFeeStats"},"type":"array","title":"Chains"}},"type":"object","required":["start","end","aggregated","chains"],"title":"ChainFeesResponse"},"ChainLendingMarkets":{"properties":{"count":{"type":"integer","title":"Count"},"markets":{"items":{"$ref":"#/components/schemas/UserLendingMarket"},"type":"array","title":"Markets"}},"type":"object","required":["count","markets"],"title":"ChainLendingMarkets"},"ChainPoolFilters":{"properties":{"chain":{"type":"string","title":"Chain"},"chain_id":{"type":"integer","title":"Chain Id"},"pools":{"items":{"$ref":"#/components/schemas/PoolFilterItem"},"type":"array","title":"Pools"}},"type":"object","required":["chain","chain_id","pools"],"title":"ChainPoolFilters"},"ChainResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/LastPrice"},"type":"array","title":"Data"},"cached_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cached At"}},"type":"object","required":["data"],"title":"ChainResponse"},"ChainStats":{"properties":{"chain":{"type":"string","title":"Chain"},"total_tvl":{"type":"number","title":"Total Tvl"},"trading_volume_24h":{"type":"number","title":"Trading Volume 24H"},"trading_fee_24h":{"type":"number","title":"Trading Fee 24H"},"liquidity_volume_24h":{"type":"number","title":"Liquidity Volume 24H"},"liquidity_fee_24h":{"type":"number","title":"Liquidity Fee 24H"}},"type":"object","required":["chain","total_tvl","trading_volume_24h","trading_fee_24h","liquidity_volume_24h","liquidity_fee_24h"],"title":"ChainStats"},"ChainTVLResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"tvl":{"type":"number","title":"Tvl"}},"type":"object","required":["chain","tvl"],"title":"ChainTVLResponse"},"ChainsStatsResponse":{"properties":{"aggregated":{"$ref":"#/components/schemas/TotalStats"},"chains":{"items":{"$ref":"#/components/schemas/ChainStats"},"type":"array","title":"Chains"},"cached_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cached At"}},"type":"object","required":["aggregated","chains"],"title":"ChainsStatsResponse"},"CollateralChangeEventType":{"type":"string","enum":["Borrow","Repay","RemoveCollateral","Liquidate"],"title":"CollateralChangeEventType"},"CowSettlementModel":{"properties":{"coin":{"$ref":"#/components/schemas/api__routes__v1__dao__fees__models__Coin"},"amount":{"type":"string","title":"Amount"},"fee_amount":{"type":"string","title":"Fee Amount"},"amount_received":{"type":"number","title":"Amount Received"},"router_received":{"type":"number","title":"Router Received"},"epoch":{"type":"integer","title":"Epoch"},"tx_hash":{"type":"string","title":"Tx Hash"},"block_number":{"type":"integer","title":"Block Number"},"dt":{"type":"string","format":"date-time","title":"Dt"}},"type":"object","required":["coin","amount","fee_amount","amount_received","router_received","epoch","tx_hash","block_number","dt"],"title":"CowSettlementModel"},"CowSettlementResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/CowSettlementModel"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"CowSettlementResponse"},"CrvUsdFeeDistributionData":{"properties":{"controller":{"type":"string","title":"Controller"},"collateral":{"type":"string","title":"Collateral"},"fees_usd":{"type":"number","title":"Fees Usd"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"}},"type":"object","required":["controller","collateral","fees_usd","timestamp"],"title":"CrvUsdFeeDistributionData"},"CrvUsdWeeklyFees":{"properties":{"fees":{"items":{"$ref":"#/components/schemas/CrvUsdFeeDistributionData"},"type":"array","title":"Fees"}},"type":"object","required":["fees"],"title":"CrvUsdWeeklyFees"},"CrvusdLlammaLeverageEventType":{"type":"string","enum":["Deposit","Repay"],"title":"CrvusdLlammaLeverageEventType"},"DailyLocks":{"properties":{"day":{"type":"string","format":"date-time","title":"Day"},"amount":{"type":"string","title":"Amount"}},"type":"object","required":["day","amount"],"title":"DailyLocks"},"DailyLocksResponse":{"properties":{"locks":{"items":{"$ref":"#/components/schemas/DailyLocks"},"type":"array","title":"Locks"}},"type":"object","required":["locks"],"title":"DailyLocksResponse"},"DaoProposalData":{"properties":{"vote_id":{"type":"integer","title":"Vote Id"},"vote_type":{"type":"string","title":"Vote Type"},"creator":{"type":"string","title":"Creator"},"start_date":{"type":"integer","title":"Start Date"},"snapshot_block":{"type":"integer","title":"Snapshot Block"},"ipfs_metadata":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ipfs Metadata"},"metadata":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata"},"votes_for":{"type":"string","title":"Votes For"},"votes_against":{"type":"string","title":"Votes Against"},"vote_count":{"type":"integer","title":"Vote Count"},"support_required":{"type":"string","title":"Support Required"},"min_accept_quorum":{"type":"string","title":"Min Accept Quorum"},"total_supply":{"type":"string","title":"Total Supply"},"executed":{"type":"boolean","title":"Executed"},"execution_tx":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Execution Tx"},"execution_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Execution Date"},"transaction_hash":{"type":"string","title":"Transaction Hash"},"dt":{"type":"string","format":"date-time","title":"Dt"}},"type":"object","required":["vote_id","vote_type","creator","start_date","snapshot_block","ipfs_metadata","metadata","votes_for","votes_against","vote_count","support_required","min_accept_quorum","total_supply","executed","execution_tx","execution_date","transaction_hash","dt"],"title":"DaoProposalData"},"DaoProposalDataPaginatedReponse":{"properties":{"proposals":{"items":{"$ref":"#/components/schemas/DaoProposalData"},"type":"array","title":"Proposals"},"page":{"type":"integer","title":"Page"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["proposals","page","count"],"title":"DaoProposalDataPaginatedReponse"},"DecimalLabelledSeries":{"properties":{"value":{"type":"number","title":"Value"},"label":{"type":"string","title":"Label"}},"type":"object","required":["value","label"],"title":"DecimalLabelledSeries"},"DepositorModel":{"properties":{"user_address":{"type":"string","title":"User Address"},"net_liquidity_provided":{"type":"number","title":"Net Liquidity Provided"},"total_deposits":{"type":"number","title":"Total Deposits"},"total_withdrawals":{"type":"number","title":"Total Withdrawals"},"add_liquidity_events":{"type":"integer","title":"Add Liquidity Events"},"remove_liquidity_events":{"type":"integer","title":"Remove Liquidity Events"}},"type":"object","required":["user_address","net_liquidity_provided","total_deposits","total_withdrawals","add_liquidity_events","remove_liquidity_events"],"title":"DepositorModel"},"DepositorsResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"token_supply":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Token Supply"},"depositors":{"items":{"$ref":"#/components/schemas/DepositorModel"},"type":"array","title":"Depositors"}},"type":"object","required":["chain","address","depositors"],"title":"DepositorsResponse"},"DetailedDaoProposalData":{"properties":{"vote_id":{"type":"integer","title":"Vote Id"},"vote_type":{"type":"string","title":"Vote Type"},"creator":{"type":"string","title":"Creator"},"start_date":{"type":"integer","title":"Start Date"},"snapshot_block":{"type":"integer","title":"Snapshot Block"},"ipfs_metadata":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ipfs Metadata"},"metadata":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata"},"votes_for":{"type":"string","title":"Votes For"},"votes_against":{"type":"string","title":"Votes Against"},"vote_count":{"type":"integer","title":"Vote Count"},"support_required":{"type":"string","title":"Support Required"},"min_accept_quorum":{"type":"string","title":"Min Accept Quorum"},"total_supply":{"type":"string","title":"Total Supply"},"executed":{"type":"boolean","title":"Executed"},"execution_tx":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Execution Tx"},"execution_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Execution Date"},"transaction_hash":{"type":"string","title":"Transaction Hash"},"dt":{"type":"string","format":"date-time","title":"Dt"},"creator_voting_power":{"type":"string","title":"Creator Voting Power"},"script":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Script"},"votes":{"items":{"$ref":"#/components/schemas/ProposalVoteData"},"type":"array","title":"Votes"}},"type":"object","required":["vote_id","vote_type","creator","start_date","snapshot_block","ipfs_metadata","metadata","votes_for","votes_against","vote_count","support_required","min_accept_quorum","total_supply","executed","execution_tx","execution_date","transaction_hash","dt","creator_voting_power","script","votes"],"title":"DetailedDaoProposalData"},"DonationChainsResponse":{"properties":{"chains":{"items":{"type":"string"},"type":"array","title":"Chains"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["chains","count"],"title":"DonationChainsResponse"},"DonationDailyPoint":{"properties":{"timestamp":{"type":"integer","title":"Timestamp"},"total_usd":{"type":"number","title":"Total Usd"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["timestamp","total_usd","count"],"title":"DonationDailyPoint"},"DonationEvent":{"properties":{"timestamp":{"type":"integer","title":"Timestamp"},"block_number":{"type":"integer","title":"Block Number"},"donor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Donor"},"lp_shares_minted":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lp Shares Minted"},"usd_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Usd Value"},"token_amounts":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Token Amounts"},"transaction_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transaction Hash"}},"type":"object","required":["timestamp","block_number"],"title":"DonationEvent"},"DonationEventsResponse":{"properties":{"count":{"type":"integer","title":"Count"},"page":{"type":"integer","title":"Page"},"tokens":{"items":{"$ref":"#/components/schemas/DonationToken"},"type":"array","title":"Tokens"},"data":{"items":{"$ref":"#/components/schemas/DonationEvent"},"type":"array","title":"Data"}},"type":"object","required":["count","page","tokens","data"],"title":"DonationEventsResponse"},"DonationLeader":{"properties":{"donor":{"type":"string","title":"Donor"},"usd_total":{"type":"number","title":"Usd Total"},"events":{"type":"integer","title":"Events"},"first_ts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Ts"},"last_ts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Ts"},"token_amounts_breakdown":{"anyOf":[{"items":{"$ref":"#/components/schemas/DonationTokenAmount"},"type":"array"},{"type":"null"}],"title":"Token Amounts Breakdown"}},"type":"object","required":["donor","usd_total","events"],"title":"DonationLeader"},"DonationToken":{"properties":{"symbol":{"type":"string","title":"Symbol"},"address":{"type":"string","title":"Address"},"decimals":{"type":"integer","title":"Decimals"}},"type":"object","required":["symbol","address","decimals"],"title":"DonationToken"},"DonationTokenAmount":{"properties":{"token":{"$ref":"#/components/schemas/DonationToken"},"amount":{"type":"number","title":"Amount"}},"type":"object","required":["token","amount"],"title":"DonationTokenAmount"},"DonationsDailyResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/DonationDailyPoint"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"DonationsDailyResponse"},"Eip1559GasPrices":{"properties":{"base":{"type":"integer","title":"Base"},"prio":{"items":{"type":"integer"},"type":"array","title":"Prio"},"max":{"items":{"type":"integer"},"type":"array","title":"Max"}},"type":"object","required":["base","prio","max"],"title":"Eip1559GasPrices"},"EpochVotesDetails":{"properties":{"proposals":{"type":"integer","title":"Proposals"},"prop_votes":{"type":"integer","title":"Prop Votes"},"prop_unique_voters":{"type":"integer","title":"Prop Unique Voters"},"gauge_votes":{"type":"integer","title":"Gauge Votes"},"gauge_unique_voters":{"type":"integer","title":"Gauge Unique Voters"},"epoch":{"type":"integer","title":"Epoch"}},"type":"object","required":["proposals","prop_votes","prop_unique_voters","gauge_votes","gauge_unique_voters","epoch"],"title":"EpochVotesDetails"},"EpochVotesDetailsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/EpochVotesDetails"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"EpochVotesDetailsResponse"},"Error":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"Error"},"ErrorResponse":{"properties":{"error":{"$ref":"#/components/schemas/Error"}},"type":"object","required":["error"],"title":"ErrorResponse"},"ExtraRewardApr":{"properties":{"address":{"type":"string","title":"Address"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Symbol"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"decimals":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Decimals"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"},"apr":{"type":"number","title":"Apr"}},"type":"object","required":["address","apr"],"title":"ExtraRewardApr"},"FeeDistributionData":{"properties":{"fees_usd":{"type":"number","title":"Fees Usd"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"}},"type":"object","required":["fees_usd","timestamp"],"title":"FeeDistributionData"},"FeeDistributionResponse":{"properties":{"distributions":{"items":{"$ref":"#/components/schemas/FeeDistributionData"},"type":"array","title":"Distributions"},"page":{"type":"integer","title":"Page"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["distributions","page","count"],"title":"FeeDistributionResponse"},"FeeStats":{"properties":{"trading_volume":{"type":"number","title":"Trading Volume"},"liquidity_volume":{"type":"number","title":"Liquidity Volume"},"total_volume":{"type":"number","title":"Total Volume"},"trading_fees":{"type":"number","title":"Trading Fees"},"liquidity_fees":{"type":"number","title":"Liquidity Fees"},"total_fees":{"type":"number","title":"Total Fees"},"fees_to_lp":{"type":"number","title":"Fees To Lp"},"fees_to_dao":{"type":"number","title":"Fees To Dao"},"fees_to_treasury":{"type":"number","title":"Fees To Treasury"},"lp_fees_yb":{"type":"number","title":"Lp Fees Yb"}},"type":"object","required":["trading_volume","liquidity_volume","total_volume","trading_fees","liquidity_fees","total_fees","fees_to_lp","fees_to_dao","fees_to_treasury","lp_fees_yb"],"title":"FeeStats"},"FullLendingMarketResponse":{"properties":{"count":{"type":"integer","title":"Count"},"data":{"items":{"$ref":"#/components/schemas/LendingMarketModel"},"type":"array","title":"Data"}},"type":"object","required":["count","data"],"title":"FullLendingMarketResponse"},"FullMarketResponse":{"properties":{"count":{"type":"integer","title":"Count"},"data":{"items":{"$ref":"#/components/schemas/Market"},"type":"array","title":"Data"}},"type":"object","required":["count","data"],"title":"FullMarketResponse"},"FullUserLendingMarketsResponse":{"properties":{"user":{"type":"string","title":"User"},"chains":{"additionalProperties":{"$ref":"#/components/schemas/ChainLendingMarkets"},"type":"object","title":"Chains"}},"type":"object","required":["user","chains"],"title":"FullUserLendingMarketsResponse"},"GasData":{"properties":{"gas":{"$ref":"#/components/schemas/GasPrices"},"eip1559Gas":{"$ref":"#/components/schemas/Eip1559GasPrices"}},"type":"object","required":["gas","eip1559Gas"],"title":"GasData"},"GasPrices":{"properties":{"rapid":{"type":"integer","title":"Rapid"},"fast":{"type":"integer","title":"Fast"},"standard":{"type":"integer","title":"Standard"},"slow":{"type":"integer","title":"Slow"}},"type":"object","required":["rapid","fast","standard","slow"],"title":"GasPrices"},"GasResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/GasData"},"generatedTimeMs":{"type":"integer","title":"Generatedtimems"}},"type":"object","required":["data","generatedTimeMs"],"title":"GasResponse"},"GaugeData":{"properties":{"address":{"type":"string","title":"Address"},"effective_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Address"},"root_gauge":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Root Gauge"},"gauge_type":{"type":"string","title":"Gauge Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"lp_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lp Token"},"pool":{"anyOf":[{"$ref":"#/components/schemas/PoolInfo"},{"type":"null"}]},"tokens":{"anyOf":[{"items":{"$ref":"#/components/schemas/api__routes__v1__dao__voting__models__Coin"},"type":"array"},{"type":"null"}],"title":"Tokens"},"market":{"anyOf":[{"$ref":"#/components/schemas/MarketInfo"},{"type":"null"}]},"is_killed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Killed"},"emissions":{"type":"number","title":"Emissions"},"prev_epoch_emissions":{"type":"number","title":"Prev Epoch Emissions"},"prev_prev_epoch_emissions":{"type":"number","title":"Prev Prev Epoch Emissions"},"gauge_weight":{"type":"string","title":"Gauge Weight"},"gauge_weight_7d":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gauge Weight 7D"},"gauge_weight_7d_delta":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gauge Weight 7D Delta"},"gauge_weight_60d":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gauge Weight 60D"},"gauge_weight_60d_delta":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gauge Weight 60D Delta"},"gauge_relative_weight":{"type":"number","title":"Gauge Relative Weight"},"gauge_relative_weight_7d_delta":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gauge Relative Weight 7D Delta"},"gauge_relative_weight_60d_delta":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gauge Relative Weight 60D Delta"},"working_supply":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Working Supply"},"lp_token_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lp Token Price"},"crv_apr_base":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Crv Apr Base"},"crv_apr_boosted":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Crv Apr Boosted"},"extra_rewards":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Extra Rewards"},"creation_tx":{"type":"string","title":"Creation Tx"},"creation_date":{"type":"string","format":"date-time","title":"Creation Date"},"last_vote_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Vote Date"},"last_vote_tx":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Vote Tx"},"deploying_instance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deploying Instance"},"is_factory":{"type":"boolean","title":"Is Factory","default":false}},"type":"object","required":["address","effective_address","gauge_type","emissions","prev_epoch_emissions","prev_prev_epoch_emissions","gauge_weight","gauge_relative_weight","creation_tx","creation_date"],"title":"GaugeData"},"GaugeDeploymentTxModel":{"properties":{"from_address":{"type":"string","title":"From Address"},"to_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Address"},"calldata":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calldata"},"decoded_calldata":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decoded Calldata"},"transaction_hash":{"type":"string","title":"Transaction Hash"},"block_number":{"type":"integer","title":"Block Number"},"dt":{"type":"string","format":"date-time","title":"Dt"}},"type":"object","required":["from_address","to_address","calldata","decoded_calldata","transaction_hash","block_number","dt"],"title":"GaugeDeploymentTxModel"},"GaugeVote":{"properties":{"user":{"type":"string","title":"User"},"weight":{"type":"integer","title":"Weight"},"block_number":{"type":"integer","title":"Block Number"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"transaction":{"type":"string","title":"Transaction"}},"type":"object","required":["user","weight","block_number","timestamp","transaction"],"title":"GaugeVote"},"GaugeVoteResponse":{"properties":{"votes":{"items":{"$ref":"#/components/schemas/GaugeVote"},"type":"array","title":"Votes"}},"type":"object","required":["votes"],"title":"GaugeVoteResponse"},"GaugeWeightHistoricalSnapshotData":{"properties":{"is_killed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Killed"},"gauge_weight":{"type":"string","title":"Gauge Weight"},"gauge_relative_weight":{"type":"string","title":"Gauge Relative Weight"},"emissions":{"type":"string","title":"Emissions"},"epoch":{"type":"integer","title":"Epoch"}},"type":"object","required":["gauge_weight","gauge_relative_weight","emissions","epoch"],"title":"GaugeWeightHistoricalSnapshotData"},"GaugeWeightSnapshotResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/GaugeWeightHistoricalSnapshotData"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"GaugeWeightSnapshotResponse"},"GaugesResponse":{"properties":{"cached_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cached At"},"gauges":{"items":{"$ref":"#/components/schemas/GaugeData"},"type":"array","title":"Gauges"}},"type":"object","required":["gauges"],"title":"GaugesResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HardLiquidatationSumResponse":{"properties":{"total":{"type":"number","title":"Total"}},"type":"object","required":["total"],"title":"HardLiquidatationSumResponse"},"HardLiquidatedUsers":{"properties":{"unique_users":{"type":"integer","title":"Unique Users"},"hard_liquidated_users":{"type":"integer","title":"Hard Liquidated Users"},"dt":{"type":"string","format":"date-time","title":"Dt"}},"type":"object","required":["unique_users","hard_liquidated_users","dt"],"title":"HardLiquidatedUsers"},"HardLiquidatedUsersResponse":{"properties":{"users":{"items":{"$ref":"#/components/schemas/HardLiquidatedUsers"},"type":"array","title":"Users"}},"type":"object","required":["users"],"title":"HardLiquidatedUsersResponse"},"HistoricalLiquidations":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"self_count":{"type":"integer","title":"Self Count"},"hard_count":{"type":"integer","title":"Hard Count"},"self_value":{"type":"number","title":"Self Value"},"hard_value":{"type":"number","title":"Hard Value"},"price":{"type":"number","title":"Price"}},"type":"object","required":["timestamp","self_count","hard_count","self_value","hard_value","price"],"title":"HistoricalLiquidations"},"HistoricalLiquidationsGlobal":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"self_count":{"type":"integer","title":"Self Count"},"hard_count":{"type":"integer","title":"Hard Count"},"self_value":{"type":"number","title":"Self Value"},"hard_value":{"type":"number","title":"Hard Value"},"price":{"type":"number","title":"Price"},"market":{"type":"string","title":"Market"}},"type":"object","required":["timestamp","self_count","hard_count","self_value","hard_value","price","market"],"title":"HistoricalLiquidationsGlobal"},"HistoricalLiquidationsGlobalResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/HistoricalLiquidationsGlobal"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"HistoricalLiquidationsGlobalResponse"},"HistoricalLiquidationsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/HistoricalLiquidations"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"HistoricalLiquidationsResponse"},"HistoricalLosses":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"median_pct_loss":{"type":"number","title":"Median Pct Loss"},"avg_pct_loss":{"type":"number","title":"Avg Pct Loss"},"median_abs_loss":{"type":"number","title":"Median Abs Loss"},"avg_abs_loss":{"type":"number","title":"Avg Abs Loss"},"total_users":{"type":"integer","title":"Total Users"},"users_with_losses":{"type":"integer","title":"Users With Losses"},"ratio":{"type":"number","title":"Ratio"}},"type":"object","required":["timestamp","median_pct_loss","avg_pct_loss","median_abs_loss","avg_abs_loss","total_users","users_with_losses","ratio"],"title":"HistoricalLosses"},"HistoricalLossesResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/HistoricalLosses"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"HistoricalLossesResponse"},"HistoricalPrice":{"properties":{"price":{"type":"number","title":"Price"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"}},"type":"object","required":["price","timestamp"],"title":"HistoricalPrice"},"HistoricalPriceResponse":{"properties":{"address":{"type":"string","title":"Address"},"data":{"items":{"$ref":"#/components/schemas/HistoricalPrice"},"type":"array","title":"Data"}},"type":"object","required":["address","data"],"title":"HistoricalPriceResponse"},"ILPoint":{"properties":{"timestamp":{"type":"integer","title":"Timestamp"},"il_percent":{"type":"number","title":"Il Percent"},"il_usd_per_lp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Il Usd Per Lp"},"lp_value_usd_per_lp":{"type":"number","title":"Lp Value Usd Per Lp"},"hodl_value_usd_per_lp":{"type":"number","title":"Hodl Value Usd Per Lp"}},"type":"object","required":["timestamp","il_percent","il_usd_per_lp","lp_value_usd_per_lp","hodl_value_usd_per_lp"],"title":"ILPoint"},"ILTimeseriesResponse":{"properties":{"baseline_ts":{"type":"integer","title":"Baseline Ts"},"tokens":{"items":{"$ref":"#/components/schemas/DonationToken"},"type":"array","title":"Tokens"},"data":{"items":{"$ref":"#/components/schemas/ILPoint"},"type":"array","title":"Data"},"il_actual_end":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Il Actual End"},"il_xyk_end":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Il Xyk End"},"il_no_donation_inflows_end":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Il No Donation Inflows End"},"lp_value_usd_start_per_lp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lp Value Usd Start Per Lp"},"lp_value_usd_end_per_lp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lp Value Usd End Per Lp"},"hodl_value_usd_start_per_lp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hodl Value Usd Start Per Lp"},"hodl_value_usd_end_per_lp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hodl Value Usd End Per Lp"},"pnl_lp_usd_per_lp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pnl Lp Usd Per Lp"},"pnl_hodl_usd_per_lp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pnl Hodl Usd Per Lp"},"delta_vs_hodl_usd_per_lp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delta Vs Hodl Usd Per Lp"},"pnl_lp_usd_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pnl Lp Usd Total"},"pnl_hodl_usd_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pnl Hodl Usd Total"},"delta_vs_hodl_usd_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delta Vs Hodl Usd Total"}},"type":"object","required":["baseline_ts","tokens","data"],"title":"ILTimeseriesResponse"},"LPDepositor":{"properties":{"rank":{"type":"integer","title":"Rank"},"address":{"type":"string","title":"Address"},"category":{"type":"string","title":"Category"},"amount":{"type":"number","title":"Amount"},"percent_of_total_staked":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percent Of Total Staked"},"percent_of_total_supply":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percent Of Total Supply"}},"type":"object","required":["rank","address","category","amount"],"title":"LPDepositor"},"LPDistribution":{"properties":{"chain":{"type":"string","title":"Chain"},"lp_token_address":{"type":"string","title":"Lp Token Address"},"pool_address":{"type":"string","title":"Pool Address"},"total_lp_supply":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Lp Supply"},"total_staked_in_gauge":{"type":"number","title":"Total Staked In Gauge"},"percent_staked_vs_total_supply":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percent Staked Vs Total Supply"},"total_depositors":{"type":"integer","title":"Total Depositors"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"categories":{"items":{"$ref":"#/components/schemas/LPDistributionCategory"},"type":"array","title":"Categories"},"depositors":{"items":{"$ref":"#/components/schemas/LPDepositor"},"type":"array","title":"Depositors"}},"type":"object","required":["chain","lp_token_address","pool_address","total_staked_in_gauge","total_depositors","page","per_page","categories","depositors"],"title":"LPDistribution"},"LPDistributionCategory":{"properties":{"name":{"type":"string","title":"Name"},"amount":{"type":"number","title":"Amount"},"percent_of_total_staked":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percent Of Total Staked"},"percent_of_total_supply":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percent Of Total Supply"}},"type":"object","required":["name","amount"],"title":"LPDistributionCategory"},"LastPrice":{"properties":{"address":{"type":"string","title":"Address"},"usd_price":{"type":"number","title":"Usd Price"},"last_updated":{"type":"string","format":"date-time","title":"Last Updated"}},"type":"object","required":["address","usd_price","last_updated"],"title":"LastPrice"},"LendingCollateralChangeEventType":{"type":"string","enum":["Borrow","Repay","RemoveCollateral","Liquidate"],"title":"LendingCollateralChangeEventType"},"LendingLlammaDeposit":{"properties":{"amount":{"type":"number","title":"Amount"},"amount_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount Usd"},"n1":{"type":"integer","title":"N1"},"n2":{"type":"integer","title":"N2"}},"type":"object","required":["amount","n1","n2"],"title":"LendingLlammaDeposit"},"LendingLlammaEvent":{"properties":{"provider":{"type":"string","title":"Provider"},"deposit":{"anyOf":[{"$ref":"#/components/schemas/LendingLlammaDeposit"},{"type":"null"}]},"withdrawal":{"anyOf":[{"$ref":"#/components/schemas/LendingLlammaWithdrawal"},{"type":"null"}]},"block_number":{"type":"integer","title":"Block Number"},"timestamp":{"type":"integer","title":"Timestamp"},"transaction_hash":{"type":"string","title":"Transaction Hash"}},"type":"object","required":["provider","block_number","timestamp","transaction_hash"],"title":"LendingLlammaEvent"},"LendingLlammaLeverageEventType":{"type":"string","enum":["Deposit","Repay"],"title":"LendingLlammaLeverageEventType"},"LendingLlammaWithdrawal":{"properties":{"amount_borrowed":{"type":"number","title":"Amount Borrowed"},"amount_collateral":{"type":"number","title":"Amount Collateral"},"amount_borrowed_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount Borrowed Usd"},"amount_collateral_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount Collateral Usd"}},"type":"object","required":["amount_borrowed","amount_collateral"],"title":"LendingLlammaWithdrawal"},"LendingMarketDistributionResponse":{"properties":{"borrowed":{"items":{"$ref":"#/components/schemas/DecimalLabelledSeries"},"type":"array","title":"Borrowed"},"debt":{"items":{"$ref":"#/components/schemas/DecimalLabelledSeries"},"type":"array","title":"Debt"},"collateral":{"items":{"$ref":"#/components/schemas/DecimalLabelledSeries"},"type":"array","title":"Collateral"}},"type":"object","required":["borrowed","debt","collateral"],"title":"LendingMarketDistributionResponse"},"LendingMarketModel":{"properties":{"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version"},"controller":{"type":"string","title":"Controller"},"vault":{"type":"string","title":"Vault"},"llamma":{"type":"string","title":"Llamma"},"policy":{"type":"string","title":"Policy"},"oracle":{"type":"string","title":"Oracle"},"oracle_pools":{"items":{"type":"string"},"type":"array","title":"Oracle Pools"},"rate":{"type":"number","title":"Rate"},"admin_fee":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Admin Fee"},"borrow_apy":{"type":"number","title":"Borrow Apy"},"borrow_apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrow Apr"},"borrow_total_apy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrow Total Apy"},"borrow_total_apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrow Total Apr"},"lend_apy":{"type":"number","title":"Lend Apy"},"lend_apr":{"type":"number","title":"Lend Apr"},"lend_apr_crv_0_boost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lend Apr Crv 0 Boost"},"lend_apr_crv_max_boost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lend Apr Crv Max Boost"},"n_loans":{"type":"integer","title":"N Loans"},"price_oracle":{"type":"number","title":"Price Oracle"},"amm_price":{"type":"number","title":"Amm Price"},"base_price":{"type":"number","title":"Base Price"},"total_debt":{"type":"number","title":"Total Debt"},"total_assets":{"type":"number","title":"Total Assets"},"total_debt_usd":{"type":"number","title":"Total Debt Usd"},"total_assets_usd":{"type":"number","title":"Total Assets Usd"},"minted":{"type":"number","title":"Minted"},"redeemed":{"type":"number","title":"Redeemed"},"minted_usd":{"type":"number","title":"Minted Usd"},"redeemed_usd":{"type":"number","title":"Redeemed Usd"},"loan_discount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Loan Discount"},"liquidation_discount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Liquidation Discount"},"leverage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leverage"},"max_ltv":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Ltv"},"min_band":{"type":"integer","title":"Min Band"},"max_band":{"type":"integer","title":"Max Band"},"collateral_balance":{"type":"number","title":"Collateral Balance"},"borrowed_balance":{"type":"number","title":"Borrowed Balance"},"collateral_balance_usd":{"type":"number","title":"Collateral Balance Usd"},"borrowed_balance_usd":{"type":"number","title":"Borrowed Balance Usd"},"collateral_token":{"$ref":"#/components/schemas/api__routes__v1__lending__markets__models__Token"},"borrowed_token":{"$ref":"#/components/schemas/api__routes__v1__lending__markets__models__Token"},"amm_a":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amm A"},"extra_reward_apr":{"items":{"$ref":"#/components/schemas/ExtraRewardApr"},"type":"array","title":"Extra Reward Apr","default":[]},"gauge_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gauge Address"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["name","version","controller","vault","llamma","policy","oracle","oracle_pools","rate","borrow_apy","lend_apy","lend_apr","n_loans","price_oracle","amm_price","base_price","total_debt","total_assets","total_debt_usd","total_assets_usd","minted","redeemed","minted_usd","redeemed_usd","loan_discount","liquidation_discount","leverage","max_ltv","min_band","max_band","collateral_balance","borrowed_balance","collateral_balance_usd","borrowed_balance_usd","collateral_token","borrowed_token","amm_a"],"title":"LendingMarketModel"},"LendingMarketResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"cached_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cached At"},"page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"},"per_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Per Page"},"count":{"type":"integer","title":"Count"},"data":{"items":{"$ref":"#/components/schemas/LendingMarketModel"},"type":"array","title":"Data"}},"type":"object","required":["chain","page","per_page","count","data"],"title":"LendingMarketResponse"},"LendingMarketSnapshotModel":{"properties":{"rate":{"type":"number","title":"Rate"},"borrow_apy":{"type":"number","title":"Borrow Apy"},"borrow_apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrow Apr"},"borrow_total_apy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrow Total Apy"},"borrow_total_apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrow Total Apr"},"lend_apy":{"type":"number","title":"Lend Apy"},"lend_apr":{"type":"number","title":"Lend Apr"},"lend_apr_crv_0_boost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lend Apr Crv 0 Boost"},"lend_apr_crv_max_boost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lend Apr Crv Max Boost"},"liquidation_discount":{"type":"number","title":"Liquidation Discount"},"loan_discount":{"type":"number","title":"Loan Discount"},"max_ltv":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Ltv"},"n_loans":{"type":"integer","title":"N Loans"},"price_oracle":{"type":"number","title":"Price Oracle"},"amm_price":{"type":"number","title":"Amm Price"},"base_price":{"type":"number","title":"Base Price"},"total_debt":{"type":"number","title":"Total Debt"},"total_assets":{"type":"number","title":"Total Assets"},"total_debt_usd":{"type":"number","title":"Total Debt Usd"},"total_assets_usd":{"type":"number","title":"Total Assets Usd"},"minted":{"type":"number","title":"Minted"},"redeemed":{"type":"number","title":"Redeemed"},"minted_usd":{"type":"number","title":"Minted Usd"},"redeemed_usd":{"type":"number","title":"Redeemed Usd"},"min_band":{"type":"integer","title":"Min Band"},"max_band":{"type":"integer","title":"Max Band"},"collateral_balance":{"type":"number","title":"Collateral Balance"},"borrowed_balance":{"type":"number","title":"Borrowed Balance"},"collateral_balance_usd":{"type":"number","title":"Collateral Balance Usd"},"borrowed_balance_usd":{"type":"number","title":"Borrowed Balance Usd"},"amm_a":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amm A"},"sum_debt_squared":{"type":"number","title":"Sum Debt Squared"},"extra_rewards_apr":{"items":{"$ref":"#/components/schemas/ExtraRewardApr"},"type":"array","title":"Extra Rewards Apr","default":[]},"collateral_token":{"$ref":"#/components/schemas/api__routes__v1__lending__markets__models__Token"},"borrowed_token":{"$ref":"#/components/schemas/api__routes__v1__lending__markets__models__Token"},"gauge_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gauge Address"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"}},"type":"object","required":["rate","borrow_apy","lend_apy","lend_apr","liquidation_discount","loan_discount","max_ltv","n_loans","price_oracle","amm_price","base_price","total_debt","total_assets","total_debt_usd","total_assets_usd","minted","redeemed","minted_usd","redeemed_usd","min_band","max_band","collateral_balance","borrowed_balance","collateral_balance_usd","borrowed_balance_usd","amm_a","sum_debt_squared","collateral_token","borrowed_token","timestamp"],"title":"LendingMarketSnapshotModel"},"LendingMarketSnapshotResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"market_id":{"type":"integer","title":"Market Id"},"data":{"items":{"$ref":"#/components/schemas/LendingMarketSnapshotModel"},"type":"array","title":"Data"}},"type":"object","required":["chain","market_id","data"],"title":"LendingMarketSnapshotResponse"},"LendingVaultEvent":{"properties":{"provider":{"type":"string","title":"Provider"},"deposit":{"anyOf":[{"$ref":"#/components/schemas/VaultLiquidityAmounts"},{"type":"null"}]},"withdrawal":{"anyOf":[{"$ref":"#/components/schemas/VaultLiquidityAmounts"},{"type":"null"}]},"block_number":{"type":"integer","title":"Block Number"},"timestamp":{"type":"integer","title":"Timestamp"},"transaction_hash":{"type":"string","title":"Transaction Hash"},"log_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Log Index"}},"type":"object","required":["provider","block_number","timestamp","transaction_hash","log_index"],"title":"LendingVaultEvent"},"LendingVaultEventType":{"type":"string","enum":["Transfer","Deposit","Withdraw"],"title":"LendingVaultEventType"},"Liquidation":{"properties":{"user":{"type":"string","title":"User"},"liquidator":{"type":"string","title":"Liquidator"},"collateral_received":{"type":"number","title":"Collateral Received"},"stablecoin_received":{"type":"number","title":"Stablecoin Received"},"collateral_received_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Collateral Received Usd"},"stablecoin_received_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Stablecoin Received Usd"},"debt":{"type":"number","title":"Debt"},"debt_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Debt Usd"}},"type":"object","required":["user","liquidator","collateral_received","stablecoin_received","debt"],"title":"Liquidation"},"LiquidityEvent":{"properties":{"liquidity_event_type":{"$ref":"#/components/schemas/LiquidityEventType"},"token_amounts":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Token Amounts"},"fees":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Fees"},"token_supply":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Token Supply"},"block_number":{"type":"integer","title":"Block Number"},"time":{"type":"string","format":"date-time","title":"Time"},"transaction_hash":{"type":"string","title":"Transaction Hash"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"pool_state":{"anyOf":[{"$ref":"#/components/schemas/PoolStateSnapshotModel"},{"type":"null"}]}},"type":"object","required":["liquidity_event_type","block_number","time","transaction_hash"],"title":"LiquidityEvent"},"LiquidityEventType":{"type":"string","enum":["AddLiquidity","RemoveLiquidity","RemoveLiquidityOne","RemoveLiquidityImbalance"],"title":"LiquidityEventType"},"LiquidityEventsResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"count":{"type":"integer","title":"Count"},"data":{"items":{"$ref":"#/components/schemas/LiquidityEvent"},"type":"array","title":"Data"}},"type":"object","required":["chain","address","page","per_page","count","data"],"title":"LiquidityEventsResponse"},"LiquidityPosition":{"properties":{"pool_name":{"type":"string","title":"Pool Name"},"pool_address":{"type":"string","title":"Pool Address"},"lp_token_balance":{"type":"string","title":"Lp Token Balance"}},"type":"object","required":["pool_name","pool_address","lp_token_balance"],"title":"LiquidityPosition"},"LiquidityPositionsResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"positions":{"items":{"$ref":"#/components/schemas/LiquidityPosition"},"type":"array","title":"Positions"}},"type":"object","required":["chain","positions"],"title":"LiquidityPositionsResponse"},"LlammaDeposit":{"properties":{"amount":{"type":"number","title":"Amount"},"amount_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount Usd"},"n1":{"type":"integer","title":"N1"},"n2":{"type":"integer","title":"N2"}},"type":"object","required":["amount","n1","n2"],"title":"LlammaDeposit"},"LlammaEvent":{"properties":{"provider":{"type":"string","title":"Provider"},"deposit":{"anyOf":[{"$ref":"#/components/schemas/LlammaDeposit"},{"type":"null"}]},"withdrawal":{"anyOf":[{"$ref":"#/components/schemas/LlammaWithdrawal"},{"type":"null"}]},"block_number":{"type":"integer","title":"Block Number"},"timestamp":{"type":"integer","title":"Timestamp"},"transaction_hash":{"type":"string","title":"Transaction Hash"}},"type":"object","required":["provider","block_number","timestamp","transaction_hash"],"title":"LlammaEvent"},"LlammaWithdrawal":{"properties":{"amount_borrowed":{"type":"number","title":"Amount Borrowed"},"amount_collateral":{"type":"number","title":"Amount Collateral"},"amount_borrowed_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount Borrowed Usd"},"amount_collateral_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount Collateral Usd"}},"type":"object","required":["amount_borrowed","amount_collateral"],"title":"LlammaWithdrawal"},"LockedSupplyDetail":{"properties":{"address":{"type":"string","title":"Address"},"label":{"type":"string","title":"Label"},"locked":{"type":"string","title":"Locked"}},"type":"object","required":["address","label","locked"],"title":"LockedSupplyDetail"},"LockerActionModel":{"properties":{"amount":{"type":"string","title":"Amount"},"unlock_time":{"type":"integer","title":"Unlock Time"},"lock_type":{"type":"string","title":"Lock Type"},"locked_balance":{"type":"string","title":"Locked Balance"},"block_number":{"type":"integer","title":"Block Number"},"dt":{"type":"string","format":"date-time","title":"Dt"},"transaction_hash":{"type":"string","title":"Transaction Hash"}},"type":"object","required":["amount","unlock_time","lock_type","locked_balance","block_number","dt","transaction_hash"],"title":"LockerActionModel"},"LossStatistic":{"type":"string","enum":["min","median","mean","max"],"title":"LossStatistic"},"Market":{"properties":{"address":{"type":"string","title":"Address"},"factory_address":{"type":"string","title":"Factory Address"},"llamma":{"type":"string","title":"Llamma"},"monetary_policy_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Monetary Policy Address"},"oracle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oracle"},"oracle_pools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Oracle Pools"},"rate":{"type":"number","title":"Rate"},"borrow_apy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrow Apy"},"borrow_apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrow Apr"},"borrow_total_apy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrow Total Apy"},"borrow_total_apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrow Total Apr"},"future_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Future Rate"},"total_debt":{"type":"number","title":"Total Debt"},"total_debt_usd":{"type":"number","title":"Total Debt Usd"},"n_loans":{"type":"integer","title":"N Loans"},"amm_a":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amm A"},"price_oracle":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Oracle"},"amm_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amm Price"},"base_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Base Price"},"min_band":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Band"},"max_band":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Band"},"loan_discount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Loan Discount"},"liquidation_discount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Liquidation Discount"},"minted":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Minted"},"redeemed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Redeemed"},"leverage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leverage"},"max_ltv":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Ltv"},"debt_ceiling":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Debt Ceiling"},"borrowable":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrowable"},"pending_fees":{"type":"number","title":"Pending Fees"},"collected_fees":{"type":"number","title":"Collected Fees"},"collateral_amount":{"type":"number","title":"Collateral Amount"},"collateral_amount_usd":{"type":"number","title":"Collateral Amount Usd"},"stablecoin_amount":{"type":"number","title":"Stablecoin Amount"},"stablecoin_amount_usd":{"type":"number","title":"Stablecoin Amount Usd"},"volume_24h_usd":{"type":"number","title":"Volume 24H Usd","default":0},"collateral_token":{"$ref":"#/components/schemas/api__routes__v1__crvusd__markets__models__Token"},"stablecoin_token":{"$ref":"#/components/schemas/api__routes__v1__crvusd__markets__models__Token"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["address","factory_address","llamma","rate","total_debt","total_debt_usd","n_loans","pending_fees","collected_fees","collateral_amount","collateral_amount_usd","stablecoin_amount","stablecoin_amount_usd","collateral_token","stablecoin_token"],"title":"Market"},"MarketDistributionResponse":{"properties":{"stablecoin":{"items":{"$ref":"#/components/schemas/DecimalLabelledSeries"},"type":"array","title":"Stablecoin"},"debt":{"items":{"$ref":"#/components/schemas/DecimalLabelledSeries"},"type":"array","title":"Debt"},"collateral":{"items":{"$ref":"#/components/schemas/DecimalLabelledSeries"},"type":"array","title":"Collateral"}},"type":"object","required":["stablecoin","debt","collateral"],"title":"MarketDistributionResponse"},"MarketInfo":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"chain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chain"}},"type":"object","title":"MarketInfo"},"MarketResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"cached_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cached At"},"page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"},"per_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Per Page"},"count":{"type":"integer","title":"Count"},"data":{"items":{"$ref":"#/components/schemas/Market"},"type":"array","title":"Data"}},"type":"object","required":["chain","count","data"],"title":"MarketResponse"},"MarketSnapshot":{"properties":{"rate":{"type":"number","title":"Rate"},"borrow_apy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrow Apy"},"borrow_apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrow Apr"},"borrow_total_apy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrow Total Apy"},"borrow_total_apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrow Total Apr"},"future_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Future Rate"},"minted":{"type":"number","title":"Minted"},"redeemed":{"type":"number","title":"Redeemed"},"total_collateral":{"type":"number","title":"Total Collateral"},"total_collateral_usd":{"type":"number","title":"Total Collateral Usd"},"total_stablecoin":{"type":"number","title":"Total Stablecoin"},"total_stablecoin_usd":{"type":"number","title":"Total Stablecoin Usd"},"total_debt":{"type":"number","title":"Total Debt"},"total_debt_usd":{"type":"number","title":"Total Debt Usd"},"n_loans":{"type":"integer","title":"N Loans"},"amm_price":{"type":"number","title":"Amm Price"},"amm_a":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amm A"},"price_oracle":{"type":"number","title":"Price Oracle"},"base_price":{"type":"number","title":"Base Price"},"min_band":{"type":"integer","title":"Min Band"},"max_band":{"type":"integer","title":"Max Band"},"borrowable":{"type":"number","title":"Borrowable"},"loan_discount":{"type":"number","title":"Loan Discount"},"liquidation_discount":{"type":"number","title":"Liquidation Discount"},"max_ltv":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Ltv"},"sum_debt_squared":{"type":"number","title":"Sum Debt Squared"},"collateral_token":{"$ref":"#/components/schemas/api__routes__v1__crvusd__markets__models__Token"},"stablecoin_token":{"$ref":"#/components/schemas/api__routes__v1__crvusd__markets__models__Token"},"dt":{"type":"string","format":"date-time","title":"Dt"}},"type":"object","required":["rate","minted","redeemed","total_collateral","total_collateral_usd","total_stablecoin","total_stablecoin_usd","total_debt","total_debt_usd","n_loans","amm_price","price_oracle","base_price","min_band","max_band","borrowable","loan_discount","liquidation_discount","max_ltv","sum_debt_squared","collateral_token","stablecoin_token","dt"],"title":"MarketSnapshot"},"MarketSnapshotResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"market":{"type":"string","title":"Market"},"data":{"items":{"$ref":"#/components/schemas/MarketSnapshot"},"type":"array","title":"Data"}},"type":"object","required":["chain","market","data"],"title":"MarketSnapshotResponse"},"OhlcLlammaModel":{"properties":{"time":{"type":"integer","title":"Time"},"open":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Open"},"close":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Close"},"high":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"High"},"low":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Low"},"base_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Base Price"},"oracle_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Oracle Price"},"volume":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Volume"}},"type":"object","required":["time"],"title":"OhlcLlammaModel"},"OhlcModel":{"properties":{"time":{"type":"integer","title":"Time"},"open":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Open"},"close":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Close"},"high":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"High"},"low":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Low"}},"type":"object","required":["time"],"title":"OhlcModel"},"Oracle":{"properties":{"oracle_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oracle Address"},"method_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method Id"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"is_verified":{"type":"boolean","title":"Is Verified","default":false}},"type":"object","title":"Oracle"},"OracleListResponse":{"properties":{"last_recorded_block":{"type":"integer","title":"Last Recorded Block"},"oracles":{"items":{"$ref":"#/components/schemas/OracleResponse"},"type":"array","title":"Oracles"}},"type":"object","required":["last_recorded_block","oracles"],"title":"OracleListResponse"},"OracleOhlcLlammaModel":{"properties":{"time":{"type":"integer","title":"Time"},"open":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Open"},"close":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Close"},"high":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"High"},"low":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Low"},"base_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Base Price"},"oracle_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Oracle Price"}},"type":"object","required":["time"],"title":"OracleOhlcLlammaModel"},"OracleResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"last_confirmed_block_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Confirmed Block Number"},"block_header":{"$ref":"#/components/schemas/BlockHeader"},"last_updated":{"type":"integer","title":"Last Updated"}},"type":"object","required":["chain","address","last_confirmed_block_number","block_header","last_updated"],"title":"OracleResponse"},"PegKeeperActionType":{"type":"string","enum":["Withdraw","Provide","Profit"],"title":"PegKeeperActionType"},"PegKeeperEntity":{"properties":{"address":{"type":"string","title":"Address"},"pool":{"type":"string","title":"Pool"},"pool_address":{"type":"string","title":"Pool Address"},"pair":{"items":{"$ref":"#/components/schemas/PegKeeperPair"},"type":"array","title":"Pair"},"active":{"type":"boolean","title":"Active"},"total_debt":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Debt"},"total_profit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Profit"},"pending_profit_raw":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pending Profit Raw"},"pending_profit_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pending Profit Usd"}},"type":"object","required":["address","pool","pool_address","pair","active"],"title":"PegKeeperEntity"},"PegKeeperEntityResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"keepers":{"items":{"$ref":"#/components/schemas/PegKeeperEntity"},"type":"array","title":"Keepers"}},"type":"object","required":["chain","keepers"],"title":"PegKeeperEntityResponse"},"PegKeeperEvent":{"properties":{"action_type":{"$ref":"#/components/schemas/PegKeeperActionType"},"amount":{"type":"number","title":"Amount"},"profit":{"type":"number","title":"Profit"},"debt":{"type":"number","title":"Debt"},"block_number":{"type":"integer","title":"Block Number"},"timestamp":{"type":"integer","title":"Timestamp"},"transaction_hash":{"type":"string","title":"Transaction Hash"}},"type":"object","required":["action_type","amount","profit","debt","block_number","timestamp","transaction_hash"],"title":"PegKeeperEvent"},"PegKeeperEventResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"keeper":{"type":"string","title":"Keeper"},"events":{"items":{"$ref":"#/components/schemas/PegKeeperEvent"},"type":"array","title":"Events"}},"type":"object","required":["chain","keeper","events"],"title":"PegKeeperEventResponse"},"PegKeeperPair":{"properties":{"symbol":{"type":"string","title":"Symbol"},"address":{"type":"string","title":"Address"}},"type":"object","required":["symbol","address"],"title":"PegKeeperPair"},"PendingPoolFees":{"properties":{"pool":{"type":"string","title":"Pool"},"name":{"type":"string","title":"Name"},"admin_fees":{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array","title":"Admin Fees"},"usd_value":{"type":"number","title":"Usd Value"}},"type":"object","required":["pool","name","admin_fees","usd_value"],"title":"PendingPoolFees"},"PendingPoolFeesResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"data":{"items":{"$ref":"#/components/schemas/PendingPoolFees"},"type":"array","title":"Data"}},"type":"object","required":["chain","data"],"title":"PendingPoolFeesResponse"},"Pool":{"properties":{"name":{"type":"string","title":"Name"},"address":{"type":"string","title":"Address"},"pool_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pool Type"},"lp_token_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lp Token Address"},"lp_token_symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lp Token Symbol"},"lp_token_supply":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lp Token Supply"},"lending_indices":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Lending Indices"},"is_metapool":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Metapool"},"base_pool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Pool"},"implementation_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Implementation Address"},"creation_ts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Creation Ts"},"creation_block_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Creation Block Number"},"n_coins":{"type":"integer","title":"N Coins"},"tvl_usd":{"type":"number","title":"Tvl Usd"},"balances":{"items":{"type":"number"},"type":"array","title":"Balances"},"balances_usd":{"items":{"type":"number"},"type":"array","title":"Balances Usd"},"trading_volume_24h":{"type":"number","title":"Trading Volume 24H"},"trading_fee_24h":{"type":"number","title":"Trading Fee 24H"},"liquidity_volume_24h":{"type":"number","title":"Liquidity Volume 24H"},"liquidity_fee_24h":{"type":"number","title":"Liquidity Fee 24H"},"coins":{"items":{"$ref":"#/components/schemas/api__routes__v1__chains__models__Coin"},"type":"array","title":"Coins"},"amplification_coefficient":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amplification Coefficient"},"base_daily_apr":{"type":"number","title":"Base Daily Apr"},"base_weekly_apr":{"type":"number","title":"Base Weekly Apr"},"virtual_price":{"type":"integer","title":"Virtual Price"},"price_oracle":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Price Oracle"},"pool_methods":{"items":{"type":"string"},"type":"array","title":"Pool Methods"}},"type":"object","required":["name","address","n_coins","tvl_usd","balances","balances_usd","trading_volume_24h","trading_fee_24h","liquidity_volume_24h","liquidity_fee_24h","coins","base_daily_apr","base_weekly_apr","virtual_price","pool_methods"],"title":"Pool"},"PoolFilterItem":{"properties":{"name":{"type":"string","title":"Name"},"address":{"type":"string","title":"Address"}},"type":"object","required":["name","address"],"title":"PoolFilterItem"},"PoolFiltersResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ChainPoolFilters"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"PoolFiltersResponse"},"PoolGauge":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"}},"type":"object","required":["name","address"],"title":"PoolGauge"},"PoolInfo":{"properties":{"address":{"type":"string","title":"Address"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"chain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chain"},"tvl_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tvl Usd"},"trading_volume_24h":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Trading Volume 24H"}},"type":"object","required":["address"],"title":"PoolInfo"},"PoolMetadataModel":{"properties":{"name":{"type":"string","title":"Name"},"registry":{"type":"string","title":"Registry"},"registry_type":{"type":"string","title":"Registry Type"},"lp_token_address":{"type":"string","title":"Lp Token Address"},"coins":{"items":{"$ref":"#/components/schemas/api__routes__v1__chains__models__Coin"},"type":"array","title":"Coins"},"gauges":{"items":{"type":"string"},"type":"array","title":"Gauges"},"pool_type":{"type":"string","title":"Pool Type"},"metapool":{"type":"boolean","title":"Metapool"},"base_pool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Pool"},"asset_types":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Asset Types"},"oracles":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/Oracle"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Oracles"},"vyper_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vyper Version"},"deployment_tx":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deployment Tx"},"deployment_block":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deployment Block"},"deployment_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deployment Date"},"implementation_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Implementation Address"},"has_donations":{"type":"boolean","title":"Has Donations","default":false}},"type":"object","required":["name","registry","registry_type","lp_token_address","coins","gauges","pool_type","metapool"],"title":"PoolMetadataModel"},"PoolSnapshotModel":{"properties":{"timestamp":{"type":"integer","title":"Timestamp"},"a":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"A"},"fee":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fee"},"admin_fee":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Admin Fee"},"virtual_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Virtual Price"},"xcp_profit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Xcp Profit"},"xcp_profit_a":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Xcp Profit A"},"base_daily_apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Base Daily Apr"},"base_weekly_apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Base Weekly Apr"},"offpeg_fee_multiplier":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Offpeg Fee Multiplier"},"gamma":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gamma"},"mid_fee":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mid Fee"},"out_fee":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Out Fee"},"fee_gamma":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fee Gamma"},"allowed_extra_profit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Allowed Extra Profit"},"adjustment_step":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Adjustment Step"},"ma_half_time":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ma Half Time"},"price_scale":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Price Scale"},"price_oracle":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Price Oracle"},"block_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Block Number"},"donation_shares":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Donation Shares"},"donation_shares_max_ratio":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Donation Shares Max Ratio"},"donation_duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Donation Duration"},"last_donation_release_ts":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Donation Release Ts"},"donation_protection_expiry_ts":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Donation Protection Expiry Ts"},"donation_protection_period":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Donation Protection Period"},"donation_protection_lp_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Donation Protection Lp Threshold"}},"type":"object","required":["timestamp"],"title":"PoolSnapshotModel"},"PoolSnapshotResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"data":{"items":{"$ref":"#/components/schemas/PoolSnapshotModel"},"type":"array","title":"Data"}},"type":"object","required":["chain","address","data"],"title":"PoolSnapshotResponse"},"PoolStateSnapshotModel":{"properties":{"a":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"A"},"fee":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fee"},"offpeg_fee_multiplier":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Offpeg Fee Multiplier"},"reserves":{"items":{"type":"number"},"type":"array","title":"Reserves"},"normalized_reserves":{"items":{"type":"number"},"type":"array","title":"Normalized Reserves"},"virtual_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Virtual Price"},"gamma":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gamma"},"mid_fee":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mid Fee"},"out_fee":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Out Fee"},"fee_gamma":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fee Gamma"},"allowed_extra_profit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Allowed Extra Profit"},"adjustment_step":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Adjustment Step"},"ma_half_time":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ma Half Time"},"price_scale":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Price Scale"},"price_oracle":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Price Oracle"},"last_prices":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Last Prices"},"last_prices_timestamp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Prices Timestamp"},"xcp_profit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Xcp Profit"},"xcp_profit_a":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Xcp Profit A"},"donation_shares":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Donation Shares"},"donation_shares_max_ratio":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Donation Shares Max Ratio"},"donation_duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Donation Duration"},"last_donation_release_ts":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Donation Release Ts"},"donation_protection_expiry_ts":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Donation Protection Expiry Ts"},"donation_protection_period":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Donation Protection Period"},"donation_protection_lp_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Donation Protection Lp Threshold"}},"type":"object","required":["reserves","normalized_reserves"],"title":"PoolStateSnapshotModel"},"PoolTvlSnapshot":{"properties":{"token_supply":{"type":"number","title":"Token Supply"},"balances":{"items":{"type":"number"},"type":"array","title":"Balances"},"token_prices":{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array","title":"Token Prices"},"token_price":{"type":"number","title":"Token Price"},"usd_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Usd Price"},"tvl_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tvl Usd"},"block_number":{"type":"integer","title":"Block Number"},"timestamp":{"type":"integer","title":"Timestamp"}},"type":"object","required":["token_supply","balances","token_prices","token_price","block_number","timestamp"],"title":"PoolTvlSnapshot"},"PoolTvlSnapshotResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"data":{"items":{"$ref":"#/components/schemas/PoolTvlSnapshot"},"type":"array","title":"Data"}},"type":"object","required":["chain","address","data"],"title":"PoolTvlSnapshotResponse"},"PoolsFeeDistributionData":{"properties":{"chain":{"type":"string","title":"Chain"},"fees_usd":{"type":"number","title":"Fees Usd"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"}},"type":"object","required":["chain","fees_usd","timestamp"],"title":"PoolsFeeDistributionData"},"PoolsResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"count":{"type":"integer","title":"Count","description":"Total active pools excluding blacklisted pools and pools with unverified oracles"},"cached_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cached At"},"total":{"$ref":"#/components/schemas/TotalStats"},"data":{"items":{"$ref":"#/components/schemas/Pool"},"type":"array","title":"Data"}},"type":"object","required":["chain","count","total","data"],"title":"PoolsResponse"},"PoolsWeeklyFees":{"properties":{"fees":{"items":{"$ref":"#/components/schemas/PoolsFeeDistributionData"},"type":"array","title":"Fees"}},"type":"object","required":["fees"],"title":"PoolsWeeklyFees"},"PriceUnits":{"type":"string","enum":["token0","usd"],"title":"PriceUnits"},"ProposalStatusFilter":{"type":"string","enum":["all","active","passed","denied","executed"],"title":"ProposalStatusFilter"},"ProposalType":{"type":"string","enum":["parameter","ownership"],"title":"ProposalType"},"ProposalTypeFilter":{"type":"string","enum":["all","parameter","ownership"],"title":"ProposalTypeFilter"},"ProposalVoteData":{"properties":{"voter":{"type":"string","title":"Voter"},"supports":{"type":"boolean","title":"Supports"},"voting_power":{"type":"string","title":"Voting Power"},"transaction_hash":{"type":"string","title":"Transaction Hash"}},"type":"object","required":["voter","supports","voting_power","transaction_hash"],"title":"ProposalVoteData"},"RangeLossData":{"properties":{"range":{"type":"string","title":"Range"},"value":{"type":"number","title":"Value"},"users":{"type":"integer","title":"Users"}},"type":"object","required":["range","value","users"],"title":"RangeLossData"},"RangeLossResponse":{"properties":{"ranges":{"items":{"$ref":"#/components/schemas/RangeLossData"},"type":"array","title":"Ranges"}},"type":"object","required":["ranges"],"title":"RangeLossResponse"},"RateCurvePoint":{"properties":{"utilization":{"type":"number","title":"Utilization"},"borrow_apy":{"type":"number","title":"Borrow Apy"},"supply_apy":{"type":"number","title":"Supply Apy"},"borrow_apr":{"type":"number","title":"Borrow Apr"},"supply_apr":{"type":"number","title":"Supply Apr"}},"type":"object","required":["utilization","borrow_apy","supply_apy","borrow_apr","supply_apr"],"title":"RateCurvePoint"},"RateCurveResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"rates":{"items":{"$ref":"#/components/schemas/RateCurvePoint"},"type":"array","title":"Rates"},"current_utilization":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Utilization"},"current_borrow_apy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Borrow Apy"},"current_supply_apy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Supply Apy"},"current_borrow_apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Borrow Apr"},"current_supply_apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Supply Apr"}},"type":"object","required":["chain","rates"],"title":"RateCurveResponse"},"RegistriesResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"data":{"items":{"$ref":"#/components/schemas/RegistryInfo"},"type":"array","title":"Data"}},"type":"object","required":["chain","data"],"title":"RegistriesResponse"},"RegistryInfo":{"properties":{"address":{"type":"string","title":"Address"},"type":{"type":"string","title":"Type"},"pool_count":{"type":"integer","title":"Pool Count"},"implementations":{"items":{"type":"string"},"type":"array","title":"Implementations"}},"type":"object","required":["address","type","pool_count","implementations"],"title":"RegistryInfo"},"RevenueReport":{"properties":{"strategy":{"type":"string","title":"Strategy"},"gain":{"type":"string","title":"Gain"},"loss":{"type":"string","title":"Loss"},"current_debt":{"type":"string","title":"Current Debt"},"total_refunds":{"type":"string","title":"Total Refunds"},"total_fees":{"type":"string","title":"Total Fees"},"protocol_fees":{"type":"string","title":"Protocol Fees"},"tx_hash":{"type":"string","title":"Tx Hash"},"dt":{"type":"string","format":"date-time","title":"Dt"}},"type":"object","required":["strategy","gain","loss","current_debt","total_refunds","total_fees","protocol_fees","tx_hash","dt"],"title":"RevenueReport"},"RevenueResponse":{"properties":{"count":{"type":"integer","title":"Count"},"total_distributed":{"type":"string","title":"Total Distributed"},"history":{"items":{"$ref":"#/components/schemas/RevenueReport"},"type":"array","title":"History"}},"type":"object","required":["count","total_distributed","history"],"title":"RevenueResponse"},"SavingsActionType":{"type":"string","enum":["Transfer","Deposit","Withdraw"],"title":"SavingsActionType"},"SavingsEvent":{"properties":{"action_type":{"$ref":"#/components/schemas/SavingsActionType"},"sender":{"type":"string","title":"Sender"},"owner":{"type":"string","title":"Owner"},"receiver":{"type":"string","title":"Receiver"},"assets":{"type":"string","title":"Assets"},"shares":{"type":"string","title":"Shares"},"block_number":{"type":"integer","title":"Block Number"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"transaction_hash":{"type":"string","title":"Transaction Hash"}},"type":"object","required":["action_type","sender","owner","receiver","assets","shares","block_number","timestamp","transaction_hash"],"title":"SavingsEvent"},"SavingsEventResponse":{"properties":{"count":{"type":"integer","title":"Count"},"events":{"items":{"$ref":"#/components/schemas/SavingsEvent"},"type":"array","title":"Events"}},"type":"object","required":["count","events"],"title":"SavingsEventResponse"},"SavingsStatsResponse":{"properties":{"last_updated":{"type":"string","format":"date-time","title":"Last Updated"},"last_updated_block":{"type":"integer","title":"Last Updated Block"},"proj_apy":{"type":"number","title":"Proj Apy"},"supply":{"type":"number","title":"Supply"}},"type":"object","required":["last_updated","last_updated_block","proj_apy","supply"],"title":"SavingsStatsResponse"},"SavingsUserStatsResponse":{"properties":{"total_deposited":{"type":"string","title":"Total Deposited"},"total_received":{"type":"string","title":"Total Received"},"total_withdrawn":{"type":"string","title":"Total Withdrawn"},"total_transferred_in":{"type":"string","title":"Total Transferred In"},"total_transferred_out":{"type":"string","title":"Total Transferred Out"},"current_balance":{"type":"string","title":"Current Balance"}},"type":"object","required":["total_deposited","total_received","total_withdrawn","total_transferred_in","total_transferred_out","current_balance"],"title":"SavingsUserStatsResponse"},"SinglePoolModel":{"properties":{"name":{"type":"string","title":"Name"},"address":{"type":"string","title":"Address"},"pool_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pool Type"},"lp_token_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lp Token Address"},"lp_token_symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lp Token Symbol"},"lp_token_supply":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lp Token Supply"},"lending_indices":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Lending Indices"},"is_metapool":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Metapool"},"base_pool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Pool"},"implementation_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Implementation Address"},"creation_ts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Creation Ts"},"creation_block_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Creation Block Number"},"n_coins":{"type":"integer","title":"N Coins"},"tvl_usd":{"type":"number","title":"Tvl Usd"},"balances":{"items":{"type":"number"},"type":"array","title":"Balances"},"balances_usd":{"items":{"type":"number"},"type":"array","title":"Balances Usd"},"trading_volume_24h":{"type":"number","title":"Trading Volume 24H"},"trading_fee_24h":{"type":"number","title":"Trading Fee 24H"},"liquidity_volume_24h":{"type":"number","title":"Liquidity Volume 24H"},"liquidity_fee_24h":{"type":"number","title":"Liquidity Fee 24H"},"coins":{"items":{"$ref":"#/components/schemas/api__routes__v1__chains__models__Coin"},"type":"array","title":"Coins"},"amplification_coefficient":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amplification Coefficient"},"base_daily_apr":{"type":"number","title":"Base Daily Apr"},"base_weekly_apr":{"type":"number","title":"Base Weekly Apr"},"virtual_price":{"type":"integer","title":"Virtual Price"},"price_oracle":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Price Oracle"},"pool_methods":{"items":{"type":"string"},"type":"array","title":"Pool Methods"}},"type":"object","required":["name","address","n_coins","tvl_usd","balances","balances_usd","trading_volume_24h","trading_fee_24h","liquidity_volume_24h","liquidity_fee_24h","coins","base_daily_apr","base_weekly_apr","virtual_price","pool_methods"],"title":"SinglePoolModel"},"SingleTokenResponse":{"properties":{"data":{"$ref":"#/components/schemas/LastPrice"}},"type":"object","required":["data"],"title":"SingleTokenResponse"},"Sort":{"type":"string","enum":["DATE_ASC","DATE_DESC"],"title":"Sort"},"SortDirection":{"type":"string","enum":["asc","desc"],"title":"SortDirection"},"StableCoinSupplyResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"data":{"items":{"$ref":"#/components/schemas/StableCoinSupplySnapshot"},"type":"array","title":"Data"}},"type":"object","required":["chain","data"],"title":"StableCoinSupplyResponse"},"StableCoinSupplySnapshot":{"properties":{"market":{"type":"string","title":"Market"},"supply":{"type":"number","title":"Supply"},"borrowable":{"type":"number","title":"Borrowable"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"}},"type":"object","required":["market","supply","borrowable","timestamp"],"title":"StableCoinSupplySnapshot"},"StandardFeeData":{"properties":{"coin":{"$ref":"#/components/schemas/api__routes__v1__dao__fees__models__Coin"},"amount":{"type":"string","title":"Amount"},"usd_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usd Amount"}},"type":"object","required":["coin","amount","usd_amount"],"title":"StandardFeeData"},"StandardFeeResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/StandardFeeData"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"StandardFeeResponse"},"SupplySnapshotModel":{"properties":{"total_vecrv":{"type":"string","title":"Total Vecrv"},"escrowed_crv":{"type":"string","title":"Escrowed Crv"},"crv_supply":{"type":"string","title":"Crv Supply"},"circulating_supply":{"type":"string","title":"Circulating Supply"},"locked_supply_details":{"items":{"$ref":"#/components/schemas/LockedSupplyDetail"},"type":"array","title":"Locked Supply Details"},"block_number":{"type":"integer","title":"Block Number"},"dt":{"type":"string","format":"date-time","title":"Dt"},"transaction_hash":{"type":"string","title":"Transaction Hash"}},"type":"object","required":["total_vecrv","escrowed_crv","crv_supply","circulating_supply","locked_supply_details","block_number","dt","transaction_hash"],"title":"SupplySnapshotModel"},"SupplySnapshotResponse":{"properties":{"supply":{"items":{"$ref":"#/components/schemas/SupplySnapshotModel"},"type":"array","title":"Supply"}},"type":"object","required":["supply"],"title":"SupplySnapshotResponse"},"TimeSeriesPoint":{"properties":{"timestamp":{"type":"integer","title":"Timestamp"},"block_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Block Number"},"virtual_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Virtual Price"},"xcp_profit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Xcp Profit"},"xcp_profit_a":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Xcp Profit A"},"price_scale":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Price Scale"},"price_oracle":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Price Oracle"},"last_prices":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Last Prices"},"reserves":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Reserves"},"donation_shares":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Donation Shares"},"last_donation_release_ts":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Donation Release Ts"},"donation_duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Donation Duration"},"donation_protection_expiry_ts":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Donation Protection Expiry Ts"},"donation_protection_period":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Donation Protection Period"},"unlocked_shares":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Unlocked Shares"},"available_shares":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Available Shares"},"lp_price_scale":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lp Price Scale"},"lp_usd_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lp Usd Price"},"tvl_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tvl Usd"},"xcp_profit_half":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Xcp Profit Half"},"vp_xcp_half_gap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Vp Xcp Half Gap"}},"type":"object","required":["timestamp"],"title":"TimeSeriesPoint"},"TimeSeriesResponse":{"properties":{"count":{"type":"integer","title":"Count"},"page":{"type":"integer","title":"Page"},"tokens":{"items":{"$ref":"#/components/schemas/DonationToken"},"type":"array","title":"Tokens"},"data":{"items":{"$ref":"#/components/schemas/TimeSeriesPoint"},"type":"array","title":"Data"}},"type":"object","required":["count","page","tokens","data"],"title":"TimeSeriesResponse"},"TopBorrower":{"properties":{"rank":{"type":"integer","title":"Rank"},"address":{"type":"string","title":"Address"},"debt":{"type":"number","title":"Debt"},"debt_usd":{"type":"number","title":"Debt Usd"},"collateral":{"type":"number","title":"Collateral"},"collateral_usd":{"type":"number","title":"Collateral Usd"},"health":{"type":"number","title":"Health"},"soft_liquidation":{"type":"boolean","title":"Soft Liquidation"},"percent_of_total_debt":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percent Of Total Debt"}},"type":"object","required":["rank","address","debt","debt_usd","collateral","collateral_usd","health","soft_liquidation"],"title":"TopBorrower"},"TotalStats":{"properties":{"total_tvl":{"type":"number","title":"Total Tvl"},"trading_volume_24h":{"type":"number","title":"Trading Volume 24H"},"trading_fee_24h":{"type":"number","title":"Trading Fee 24H"},"liquidity_volume_24h":{"type":"number","title":"Liquidity Volume 24H"},"liquidity_fee_24h":{"type":"number","title":"Liquidity Fee 24H"}},"type":"object","required":["total_tvl","trading_volume_24h","trading_fee_24h","liquidity_volume_24h","liquidity_fee_24h"],"title":"TotalStats"},"Trade":{"properties":{"sold_id":{"type":"integer","title":"Sold Id","description":"Pool index of token"},"bought_id":{"type":"integer","title":"Bought Id","description":"Pool index of token"},"tokens_sold":{"type":"number","title":"Tokens Sold"},"tokens_sold_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tokens Sold Usd"},"tokens_bought":{"type":"number","title":"Tokens Bought"},"tokens_bought_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tokens Bought Usd"},"price":{"type":"number","title":"Price"},"block_number":{"type":"integer","title":"Block Number"},"log_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Log Index","description":"Index of the trade log within its transaction"},"time":{"type":"string","format":"date-time","title":"Time"},"transaction_hash":{"type":"string","title":"Transaction Hash"},"buyer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyer"},"fee":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fee"},"usd_fee":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Usd Fee"},"pool_state":{"anyOf":[{"$ref":"#/components/schemas/PoolStateSnapshotModel"},{"type":"null"}]}},"type":"object","required":["sold_id","bought_id","tokens_sold","tokens_bought","price","block_number","time","transaction_hash"],"title":"Trade"},"TradesResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"main_token":{"$ref":"#/components/schemas/api__routes__v1__trades__models__Token"},"reference_token":{"$ref":"#/components/schemas/api__routes__v1__trades__models__Token"},"data":{"items":{"$ref":"#/components/schemas/Trade"},"type":"array","title":"Data"}},"type":"object","required":["chain","address","main_token","reference_token","data"],"title":"TradesResponse"},"UserLendingMarket":{"properties":{"market_name":{"type":"string","title":"Market Name"},"vault_address":{"type":"string","title":"Vault Address"},"first_deposit":{"type":"string","format":"date-time","title":"First Deposit"},"last_activity":{"type":"string","format":"date-time","title":"Last Activity"},"current_shares":{"type":"string","title":"Current Shares"},"current_shares_in_gauge":{"type":"string","title":"Current Shares In Gauge"},"earnings":{"type":"string","title":"Earnings"},"total_current_assets":{"type":"string","title":"Total Current Assets"},"boost_multiplier":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Boost Multiplier"}},"type":"object","required":["market_name","vault_address","first_deposit","last_activity","current_shares","current_shares_in_gauge","earnings","total_current_assets"],"title":"UserLendingMarket"},"UserLendingMarketResponse":{"properties":{"user":{"type":"string","title":"User"},"markets":{"items":{"$ref":"#/components/schemas/UserLendingMarket"},"type":"array","title":"Markets"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["user","markets","page","per_page","count"],"title":"UserLendingMarketResponse"},"UserLockInfo":{"properties":{"user":{"type":"string","title":"User"},"locked":{"type":"string","title":"Locked"},"weight":{"type":"string","title":"Weight"},"weight_ratio":{"type":"string","title":"Weight Ratio"},"unlock_time":{"type":"integer","title":"Unlock Time"}},"type":"object","required":["user","locked","weight","weight_ratio","unlock_time"],"title":"UserLockInfo"},"UserLockPaginatedReponse":{"properties":{"locks":{"items":{"$ref":"#/components/schemas/UserLockInfo"},"type":"array","title":"Locks"},"page":{"type":"integer","title":"Page"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["locks","page","count"],"title":"UserLockPaginatedReponse"},"UserLockReponse":{"properties":{"users":{"items":{"$ref":"#/components/schemas/UserLockInfo"},"type":"array","title":"Users"}},"type":"object","required":["users"],"title":"UserLockReponse"},"UserProposalVoteHistory":{"properties":{"proposal":{"$ref":"#/components/schemas/DaoProposalData"},"votes":{"items":{"$ref":"#/components/schemas/ProposalVoteData"},"type":"array","title":"Votes"}},"type":"object","required":["proposal","votes"],"title":"UserProposalVoteHistory"},"UserProposalVoteHistoryResponse":{"properties":{"page":{"type":"integer","title":"Page"},"count":{"type":"integer","title":"Count"},"data":{"items":{"$ref":"#/components/schemas/UserProposalVoteHistory"},"type":"array","title":"Data"}},"type":"object","required":["page","count","data"],"title":"UserProposalVoteHistoryResponse"},"UserVote":{"properties":{"gauge":{"type":"string","title":"Gauge"},"gauge_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gauge Name"},"weight":{"type":"integer","title":"Weight"},"block_number":{"type":"integer","title":"Block Number"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"transaction":{"type":"string","title":"Transaction"}},"type":"object","required":["gauge","weight","block_number","timestamp","transaction"],"title":"UserVote"},"UserVoteReponse":{"properties":{"locks":{"items":{"$ref":"#/components/schemas/LockerActionModel"},"type":"array","title":"Locks"}},"type":"object","required":["locks"],"title":"UserVoteReponse"},"UserVoteResponse":{"properties":{"votes":{"items":{"$ref":"#/components/schemas/UserVote"},"type":"array","title":"Votes"}},"type":"object","required":["votes"],"title":"UserVoteResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VaultDepositor":{"properties":{"rank":{"type":"integer","title":"Rank"},"address":{"type":"string","title":"Address"},"category":{"type":"string","title":"Category"},"wallet_shares":{"type":"number","title":"Wallet Shares"},"gauge_shares":{"type":"number","title":"Gauge Shares"},"shares":{"type":"number","title":"Shares"},"wallet_assets":{"type":"number","title":"Wallet Assets"},"gauge_assets":{"type":"number","title":"Gauge Assets"},"assets":{"type":"number","title":"Assets"},"percent_of_total_shares":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percent Of Total Shares"}},"type":"object","required":["rank","address","category","wallet_shares","gauge_shares","shares","wallet_assets","gauge_assets","assets"],"title":"VaultDepositor"},"VaultDepositorSortDirection":{"type":"string","enum":["asc","desc"],"title":"VaultDepositorSortDirection"},"VaultDepositorSortField":{"type":"string","enum":["address","wallet_shares","gauge_shares","shares","wallet_assets","gauge_assets","assets","percent_of_total_shares"],"title":"VaultDepositorSortField"},"VaultDepositorsResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"vault_address":{"type":"string","title":"Vault Address"},"total_shares":{"type":"number","title":"Total Shares"},"total_assets":{"type":"number","title":"Total Assets"},"total_suppliers":{"type":"integer","title":"Total Suppliers"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"depositors":{"items":{"$ref":"#/components/schemas/VaultDepositor"},"type":"array","title":"Depositors"}},"type":"object","required":["chain","vault_address","total_shares","total_assets","total_suppliers","page","per_page","depositors"],"title":"VaultDepositorsResponse"},"VaultEarnings":{"properties":{"user":{"type":"string","title":"User"},"earnings":{"type":"string","title":"Earnings"},"deposited":{"type":"string","title":"Deposited"},"withdrawn":{"type":"string","title":"Withdrawn"},"transfers_in_shares":{"type":"string","title":"Transfers In Shares"},"transfers_out_shares":{"type":"string","title":"Transfers Out Shares"},"transfers_in_assets":{"type":"string","title":"Transfers In Assets"},"transfers_out_assets":{"type":"string","title":"Transfers Out Assets"},"transfers_shares_to_gauge":{"type":"string","title":"Transfers Shares To Gauge"},"transfers_shares_from_gauge":{"type":"string","title":"Transfers Shares From Gauge"},"transfers_assets_to_gauge":{"type":"string","title":"Transfers Assets To Gauge"},"transfers_assets_from_gauge":{"type":"string","title":"Transfers Assets From Gauge"},"transfers_shares_to_convex":{"type":"string","title":"Transfers Shares To Convex"},"transfers_shares_from_convex":{"type":"string","title":"Transfers Shares From Convex"},"transfers_assets_to_convex":{"type":"string","title":"Transfers Assets To Convex"},"transfers_assets_from_convex":{"type":"string","title":"Transfers Assets From Convex"},"current_shares":{"type":"string","title":"Current Shares"},"current_shares_in_gauge":{"type":"string","title":"Current Shares In Gauge"},"current_shares_in_convex":{"type":"string","title":"Current Shares In Convex"},"current_assets":{"type":"string","title":"Current Assets"},"current_assets_in_gauge":{"type":"string","title":"Current Assets In Gauge"},"current_assets_in_convex":{"type":"string","title":"Current Assets In Convex"},"total_current_shares":{"type":"string","title":"Total Current Shares"},"total_current_assets":{"type":"string","title":"Total Current Assets"},"boost_multiplier":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Boost Multiplier"}},"type":"object","required":["user","earnings","deposited","withdrawn","transfers_in_shares","transfers_out_shares","transfers_in_assets","transfers_out_assets","transfers_shares_to_gauge","transfers_shares_from_gauge","transfers_assets_to_gauge","transfers_assets_from_gauge","transfers_shares_to_convex","transfers_shares_from_convex","transfers_assets_to_convex","transfers_assets_from_convex","current_shares","current_shares_in_gauge","current_shares_in_convex","current_assets","current_assets_in_gauge","current_assets_in_convex","total_current_shares","total_current_assets"],"title":"VaultEarnings"},"VaultEvent":{"properties":{"user":{"type":"string","title":"User"},"event_type":{"$ref":"#/components/schemas/LendingVaultEventType"},"block_number":{"type":"integer","title":"Block Number"},"dt":{"type":"string","format":"date-time","title":"Dt"},"transaction_hash":{"type":"string","title":"Transaction Hash"},"log_index":{"type":"integer","title":"Log Index"},"assets":{"type":"string","title":"Assets"},"shares":{"type":"string","title":"Shares"},"sender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender"},"receiver":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Receiver"}},"type":"object","required":["user","event_type","block_number","dt","transaction_hash","log_index","assets","shares","sender","receiver"],"title":"VaultEvent"},"VaultEventResponse":{"properties":{"user":{"type":"string","title":"User"},"total_deposited":{"type":"string","title":"Total Deposited"},"events":{"items":{"$ref":"#/components/schemas/VaultEvent"},"type":"array","title":"Events"}},"type":"object","required":["user","total_deposited","events"],"title":"VaultEventResponse"},"VaultEventsResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"page":{"type":"integer","title":"Page"},"count":{"type":"integer","title":"Count"},"data":{"items":{"$ref":"#/components/schemas/LendingVaultEvent"},"type":"array","title":"Data"}},"type":"object","required":["chain","address","page","count","data"],"title":"VaultEventsResponse"},"VaultLiquidityAmounts":{"properties":{"assets":{"type":"number","title":"Assets"},"shares":{"type":"number","title":"Shares"}},"type":"object","required":["assets","shares"],"title":"VaultLiquidityAmounts"},"VolumeDataPoint":{"properties":{"timestamp":{"type":"integer","title":"Timestamp"},"volume":{"type":"number","title":"Volume"},"fees":{"type":"number","title":"Fees"}},"type":"object","required":["timestamp","volume","fees"],"title":"VolumeDataPoint"},"VolumeResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"data":{"items":{"$ref":"#/components/schemas/VolumeDataPoint"},"type":"array","title":"Data"}},"type":"object","required":["chain","address","data"],"title":"VolumeResponse"},"YBAggregatedStats":{"properties":{"volume_24h":{"type":"number","title":"Volume 24H"},"adjacent_volume_24h":{"type":"number","title":"Adjacent Volume 24H"},"yb_total_fees_24h":{"type":"number","title":"Yb Total Fees 24H"},"yb_dao_fees_24h":{"type":"number","title":"Yb Dao Fees 24H"},"adjacent_total_fees_24h":{"type":"number","title":"Adjacent Total Fees 24H"},"adjacent_dao_fees_24h":{"type":"number","title":"Adjacent Dao Fees 24H"},"adjacent_volume_pct_24h":{"type":"number","title":"Adjacent Volume Pct 24H"},"adjacent_dao_fees_pct_24h":{"type":"number","title":"Adjacent Dao Fees Pct 24H"},"volume_7d":{"type":"number","title":"Volume 7D"},"adjacent_volume_7d":{"type":"number","title":"Adjacent Volume 7D"},"yb_total_fees_7d":{"type":"number","title":"Yb Total Fees 7D"},"yb_dao_fees_7d":{"type":"number","title":"Yb Dao Fees 7D"},"adjacent_total_fees_7d":{"type":"number","title":"Adjacent Total Fees 7D"},"adjacent_dao_fees_7d":{"type":"number","title":"Adjacent Dao Fees 7D"},"adjacent_volume_pct_7d":{"type":"number","title":"Adjacent Volume Pct 7D"},"adjacent_dao_fees_pct_7d":{"type":"number","title":"Adjacent Dao Fees Pct 7D"}},"type":"object","required":["volume_24h","adjacent_volume_24h","yb_total_fees_24h","yb_dao_fees_24h","adjacent_total_fees_24h","adjacent_dao_fees_24h","adjacent_volume_pct_24h","adjacent_dao_fees_pct_24h","volume_7d","adjacent_volume_7d","yb_total_fees_7d","yb_dao_fees_7d","adjacent_total_fees_7d","adjacent_dao_fees_7d","adjacent_volume_pct_7d","adjacent_dao_fees_pct_7d"],"title":"YBAggregatedStats"},"YBAggregatedVolumeResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"stats":{"$ref":"#/components/schemas/YBAggregatedStats"}},"type":"object","required":["chain","stats"],"title":"YBAggregatedVolumeResponse"},"YBPool":{"properties":{"name":{"type":"string","title":"Name"},"address":{"type":"string","title":"Address"}},"type":"object","required":["name","address"],"title":"YBPool"},"YBPoolVolumeResponse":{"properties":{"pool_address":{"type":"string","title":"Pool Address"},"pool_name":{"type":"string","title":"Pool Name"},"transactions":{"items":{"$ref":"#/components/schemas/YBTransaction"},"type":"array","title":"Transactions"}},"type":"object","required":["pool_address","pool_name","transactions"],"title":"YBPoolVolumeResponse"},"YBPoolsResponse":{"properties":{"count":{"type":"integer","title":"Count"},"data":{"items":{"$ref":"#/components/schemas/YBPool"},"type":"array","title":"Data"}},"type":"object","required":["count","data"],"title":"YBPoolsResponse"},"YBTransaction":{"properties":{"tx_hash":{"type":"string","title":"Tx Hash"},"block_number":{"type":"integer","title":"Block Number"},"timestamp":{"type":"string","title":"Timestamp"},"volume":{"type":"number","title":"Volume"},"adjacent_volume":{"type":"number","title":"Adjacent Volume"},"adjacent_pools":{"items":{"$ref":"#/components/schemas/AdjacentPool"},"type":"array","title":"Adjacent Pools"}},"type":"object","required":["tx_hash","block_number","timestamp","volume","adjacent_volume","adjacent_pools"],"title":"YBTransaction"},"YieldBasisHistoryModel":{"properties":{"yb_factory_balance":{"type":"string","title":"Yb Factory Balance"},"yb_total_allocated":{"type":"string","title":"Yb Total Allocated"},"yb_total_amm_balance":{"type":"string","title":"Yb Total Amm Balance"},"yb_total_amm_debt":{"type":"string","title":"Yb Total Amm Debt"},"yb_max_debt":{"type":"string","title":"Yb Max Debt"},"dt":{"type":"string","format":"date-time","title":"Dt"},"block_number":{"type":"integer","title":"Block Number"}},"type":"object","required":["yb_factory_balance","yb_total_allocated","yb_total_amm_balance","yb_total_amm_debt","yb_max_debt","dt","block_number"],"title":"YieldBasisHistoryModel"},"YieldBasisHistoryResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"data":{"items":{"$ref":"#/components/schemas/YieldBasisHistoryModel"},"type":"array","title":"Data"}},"type":"object","required":["chain","data"],"title":"YieldBasisHistoryResponse"},"YieldBasisSupplyResponse":{"properties":{"cached_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cached At"},"data":{"$ref":"#/components/schemas/YieldBasisSupplyWithMintModel"}},"type":"object","required":["data"],"title":"YieldBasisSupplyResponse"},"YieldBasisSupplyWithMintModel":{"properties":{"yb_factory_balance":{"type":"string","title":"Yb Factory Balance"},"yb_total_allocated":{"type":"string","title":"Yb Total Allocated"},"yb_total_amm_balance":{"type":"string","title":"Yb Total Amm Balance"},"yb_total_amm_debt":{"type":"string","title":"Yb Total Amm Debt"},"yb_max_debt":{"type":"string","title":"Yb Max Debt"},"mint_pegkeeper_debt":{"type":"string","title":"Mint Pegkeeper Debt"},"mint_market_debt":{"type":"string","title":"Mint Market Debt"},"total_supply":{"type":"string","title":"Total Supply"}},"type":"object","required":["yb_factory_balance","yb_total_allocated","yb_total_amm_balance","yb_total_amm_debt","yb_max_debt","mint_pegkeeper_debt","mint_market_debt","total_supply"],"title":"YieldBasisSupplyWithMintModel"},"YieldHistory":{"properties":{"timestamp":{"type":"integer","title":"Timestamp"},"assets":{"type":"number","title":"Assets"},"supply":{"type":"number","title":"Supply"},"proj_apy":{"type":"number","title":"Proj Apy"},"price":{"type":"number","title":"Price"}},"type":"object","required":["timestamp","assets","supply","proj_apy","price"],"title":"YieldHistory"},"YieldHistoryResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/YieldHistory"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"YieldHistoryResponse"},"api__routes__v1__chains__models__ChainsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Chain"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"ChainsResponse"},"api__routes__v1__chains__models__Coin":{"properties":{"pool_index":{"type":"integer","title":"Pool Index"},"symbol":{"type":"string","title":"Symbol"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"address":{"type":"string","title":"Address"},"decimals":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Decimals"}},"type":"object","required":["pool_index","symbol","address","decimals"],"title":"Coin"},"api__routes__v1__crvusd__collateral_events__models__CollateralEvent":{"properties":{"dt":{"type":"string","format":"date-time","title":"Dt"},"transaction_hash":{"type":"string","title":"Transaction Hash"},"type":{"$ref":"#/components/schemas/CollateralChangeEventType"},"user":{"type":"string","title":"User"},"collateral_change":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Collateral Change"},"collateral_change_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Collateral Change Usd"},"loan_change":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Loan Change"},"loan_change_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Loan Change Usd"},"liquidation":{"anyOf":[{"$ref":"#/components/schemas/Liquidation"},{"type":"null"}]},"leverage":{"anyOf":[{"$ref":"#/components/schemas/api__routes__v1__crvusd__collateral_events__models__Leverage"},{"type":"null"}]},"n1":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N1"},"n2":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N2"},"oracle_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Oracle Price"},"is_in_soft_liquidation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is In Soft Liquidation"},"is_closed":{"type":"boolean","title":"Is Closed"},"is_position_closed":{"type":"boolean","title":"Is Position Closed"}},"type":"object","required":["dt","transaction_hash","type","user","is_closed","is_position_closed"],"title":"CollateralEvent"},"api__routes__v1__crvusd__collateral_events__models__CollateralEventsResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"controller":{"type":"string","title":"Controller"},"user":{"type":"string","title":"User"},"total_deposit":{"type":"number","title":"Total Deposit"},"total_deposit_from_user":{"type":"number","title":"Total Deposit From User"},"total_borrowed":{"type":"number","title":"Total Borrowed"},"total_deposit_precise":{"type":"string","title":"Total Deposit Precise"},"total_borrowed_precise":{"type":"string","title":"Total Borrowed Precise"},"total_deposit_from_user_precise":{"type":"string","title":"Total Deposit From User Precise"},"total_deposit_from_user_usd_value":{"type":"number","title":"Total Deposit From User Usd Value"},"total_deposit_usd_value":{"type":"number","title":"Total Deposit Usd Value"},"total_borrowed_usd_value":{"type":"number","title":"Total Borrowed Usd Value"},"count":{"type":"integer","title":"Count"},"pagination":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pagination"},"page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"},"data":{"items":{"$ref":"#/components/schemas/api__routes__v1__crvusd__collateral_events__models__CollateralEvent"},"type":"array","title":"Data"}},"type":"object","required":["chain","controller","user","total_deposit","total_deposit_from_user","total_borrowed","total_deposit_precise","total_borrowed_precise","total_deposit_from_user_precise","total_deposit_from_user_usd_value","total_deposit_usd_value","total_borrowed_usd_value","count","data"],"title":"CollateralEventsResponse"},"api__routes__v1__crvusd__collateral_events__models__Leverage":{"properties":{"event_type":{"$ref":"#/components/schemas/CrvusdLlammaLeverageEventType"},"user":{"type":"string","title":"User"},"user_collateral":{"type":"number","title":"User Collateral"},"user_borrowed":{"type":"number","title":"User Borrowed"},"user_collateral_from_borrowed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"User Collateral From Borrowed"},"debt":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Debt"},"leverage_collateral":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leverage Collateral"},"state_collateral_used":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"State Collateral Used"},"borrowed_from_state_collateral":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrowed From State Collateral"},"user_collateral_used":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"User Collateral Used"},"borrowed_from_user_collateral":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrowed From User Collateral"}},"type":"object","required":["event_type","user","user_collateral","user_borrowed","user_collateral_from_borrowed","debt","leverage_collateral","state_collateral_used","borrowed_from_state_collateral","user_collateral_used","borrowed_from_user_collateral"],"title":"Leverage"},"api__routes__v1__crvusd__liquidations__models__CollateralRatioDistribution":{"properties":{"cr_decile":{"type":"string","title":"Cr Decile"},"collateral":{"type":"number","title":"Collateral"},"stablecoin":{"type":"number","title":"Stablecoin"},"debt":{"type":"number","title":"Debt"}},"type":"object","required":["cr_decile","collateral","stablecoin","debt"],"title":"CollateralRatioDistribution"},"api__routes__v1__crvusd__liquidations__models__CollateralRatioDistributionResponse":{"properties":{"median":{"type":"number","title":"Median"},"mean":{"type":"number","title":"Mean"},"std":{"type":"number","title":"Std"},"min":{"type":"number","title":"Min"},"max":{"type":"number","title":"Max"},"data":{"items":{"$ref":"#/components/schemas/api__routes__v1__crvusd__liquidations__models__CollateralRatioDistribution"},"type":"array","title":"Data"}},"type":"object","required":["median","mean","std","min","max","data"],"title":"CollateralRatioDistributionResponse"},"api__routes__v1__crvusd__liquidations__models__HealthDistribution":{"properties":{"health_decile":{"type":"string","title":"Health Decile"},"collateral":{"type":"number","title":"Collateral"},"stablecoin":{"type":"number","title":"Stablecoin"},"debt":{"type":"number","title":"Debt"}},"type":"object","required":["health_decile","collateral","stablecoin","debt"],"title":"HealthDistribution"},"api__routes__v1__crvusd__liquidations__models__HealthDistributionResponse":{"properties":{"median":{"type":"number","title":"Median"},"mean":{"type":"number","title":"Mean"},"std":{"type":"number","title":"Std"},"min":{"type":"number","title":"Min"},"max":{"type":"number","title":"Max"},"data":{"items":{"$ref":"#/components/schemas/api__routes__v1__crvusd__liquidations__models__HealthDistribution"},"type":"array","title":"Data"}},"type":"object","required":["median","mean","std","min","max","data"],"title":"HealthDistributionResponse"},"api__routes__v1__crvusd__liquidations__models__HistoricalSoftLoss":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"proportion":{"type":"number","title":"Proportion"},"total_debt":{"type":"number","title":"Total Debt"},"total_debt_under_sl":{"type":"number","title":"Total Debt Under Sl"},"debt_under_sl_ratio":{"type":"number","title":"Debt Under Sl Ratio"},"total_collateral":{"type":"number","title":"Total Collateral"},"total_collateral_under_sl":{"type":"number","title":"Total Collateral Under Sl"},"total_collateral_under_sl_usd":{"type":"number","title":"Total Collateral Under Sl Usd"},"collateral_under_sl_ratio":{"type":"number","title":"Collateral Under Sl Ratio"},"total_stablecoin_under_sl":{"type":"number","title":"Total Stablecoin Under Sl"},"total_stablecoin":{"type":"number","title":"Total Stablecoin"},"stablecoin_under_sl_ratio":{"type":"number","title":"Stablecoin Under Sl Ratio"}},"type":"object","required":["timestamp","proportion","total_debt","total_debt_under_sl","debt_under_sl_ratio","total_collateral","total_collateral_under_sl","total_collateral_under_sl_usd","collateral_under_sl_ratio","total_stablecoin_under_sl","total_stablecoin","stablecoin_under_sl_ratio"],"title":"HistoricalSoftLoss"},"api__routes__v1__crvusd__liquidations__models__HistoricalSoftLossResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/api__routes__v1__crvusd__liquidations__models__HistoricalSoftLoss"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"HistoricalSoftLossResponse"},"api__routes__v1__crvusd__liquidations__models__LiquidationDetails":{"properties":{"user":{"type":"string","title":"User"},"liquidator":{"type":"string","title":"Liquidator"},"self":{"type":"boolean","title":"Self"},"collateral_received":{"type":"number","title":"Collateral Received"},"collateral_received_usd":{"type":"number","title":"Collateral Received Usd"},"stablecoin_received":{"type":"number","title":"Stablecoin Received"},"oracle_price":{"type":"number","title":"Oracle Price"},"debt":{"type":"number","title":"Debt"},"n1":{"type":"integer","title":"N1"},"n2":{"type":"integer","title":"N2"},"dt":{"type":"string","format":"date-time","title":"Dt"},"tx":{"type":"string","title":"Tx"},"block":{"type":"integer","title":"Block"}},"type":"object","required":["user","liquidator","self","collateral_received","collateral_received_usd","stablecoin_received","oracle_price","debt","n1","n2","dt","tx","block"],"title":"LiquidationDetails"},"api__routes__v1__crvusd__liquidations__models__LiquidationDetailsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/api__routes__v1__crvusd__liquidations__models__LiquidationDetails"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"LiquidationDetailsResponse"},"api__routes__v1__crvusd__liquidations__models__LiquidationOverview":{"properties":{"soft_liquidation_users":{"type":"integer","title":"Soft Liquidation Users"},"median_health":{"type":"number","title":"Median Health"},"average_health":{"type":"number","title":"Average Health"},"debt_weighted_average_health":{"type":"number","title":"Debt Weighted Average Health","default":0.0},"collat_ratio":{"type":"number","title":"Collat Ratio"},"bad_debt":{"type":"number","title":"Bad Debt"},"liquidatable_positions":{"type":"integer","title":"Liquidatable Positions"},"liquidatable_pos_debt":{"type":"string","title":"Liquidatable Pos Debt"},"liquidatable_stablecoin":{"type":"string","title":"Liquidatable Stablecoin"},"liquidatable_collateral":{"type":"string","title":"Liquidatable Collateral"},"liquidatable_pos_debt_usd":{"type":"number","title":"Liquidatable Pos Debt Usd"},"liquidatable_collateral_usd":{"type":"number","title":"Liquidatable Collateral Usd"},"liquidatable_stablecoin_usd":{"type":"number","title":"Liquidatable Stablecoin Usd"}},"type":"object","required":["soft_liquidation_users","median_health","average_health","collat_ratio","bad_debt","liquidatable_positions","liquidatable_pos_debt","liquidatable_stablecoin","liquidatable_collateral","liquidatable_pos_debt_usd","liquidatable_collateral_usd","liquidatable_stablecoin_usd"],"title":"LiquidationOverview"},"api__routes__v1__crvusd__liquidations__models__MarketBadDebtOverview":{"properties":{"chain":{"type":"string","title":"Chain"},"soft_liquidation_users":{"type":"integer","title":"Soft Liquidation Users"},"bad_debt":{"type":"number","title":"Bad Debt"},"liquidatable_positions":{"type":"integer","title":"Liquidatable Positions"},"liquidatable_pos_debt_usd":{"type":"number","title":"Liquidatable Pos Debt Usd"},"liquidatable_collateral_usd":{"type":"number","title":"Liquidatable Collateral Usd"},"liquidatable_stablecoin_usd":{"type":"number","title":"Liquidatable Stablecoin Usd"},"market":{"type":"string","title":"Market"},"controller_address":{"type":"string","title":"Controller Address"}},"type":"object","required":["chain","soft_liquidation_users","bad_debt","liquidatable_positions","liquidatable_pos_debt_usd","liquidatable_collateral_usd","liquidatable_stablecoin_usd","market","controller_address"],"title":"MarketBadDebtOverview"},"api__routes__v1__crvusd__liquidations__models__MarketBadDebtResponse":{"properties":{"total_bad_debt":{"type":"number","title":"Total Bad Debt"},"data":{"items":{"$ref":"#/components/schemas/api__routes__v1__crvusd__liquidations__models__MarketBadDebtOverview"},"type":"array","title":"Data"}},"type":"object","required":["total_bad_debt","data"],"title":"MarketBadDebtResponse"},"api__routes__v1__crvusd__llamma_events__models__LlammaEventsResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"count":{"type":"integer","title":"Count"},"data":{"items":{"$ref":"#/components/schemas/LlammaEvent"},"type":"array","title":"Data"}},"type":"object","required":["chain","address","count","data"],"title":"LlammaEventsResponse"},"api__routes__v1__crvusd__llamma_ohlc__models__OhlcResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"data":{"items":{"$ref":"#/components/schemas/OhlcLlammaModel"},"type":"array","title":"Data"}},"type":"object","required":["chain","address","data"],"title":"OhlcResponse"},"api__routes__v1__crvusd__llamma_trades__models__LlammaTrade":{"properties":{"sold_id":{"type":"integer","title":"Sold Id","description":"Pool index of token"},"bought_id":{"type":"integer","title":"Bought Id","description":"Pool index of token"},"token_sold":{"$ref":"#/components/schemas/api__routes__v1__crvusd__llamma_trades__models__Token"},"token_bought":{"$ref":"#/components/schemas/api__routes__v1__crvusd__llamma_trades__models__Token"},"amount_sold":{"type":"number","title":"Amount Sold"},"amount_bought":{"type":"number","title":"Amount Bought"},"price":{"type":"number","title":"Price"},"buyer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyer"},"block_number":{"type":"integer","title":"Block Number"},"timestamp":{"type":"integer","title":"Timestamp"},"transaction_hash":{"type":"string","title":"Transaction Hash"}},"type":"object","required":["sold_id","bought_id","token_sold","token_bought","amount_sold","amount_bought","price","block_number","timestamp","transaction_hash"],"title":"LlammaTrade"},"api__routes__v1__crvusd__llamma_trades__models__LlammaTradesResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"count":{"type":"integer","title":"Count"},"data":{"items":{"$ref":"#/components/schemas/api__routes__v1__crvusd__llamma_trades__models__LlammaTrade"},"type":"array","title":"Data"}},"type":"object","required":["chain","address","count","data"],"title":"LlammaTradesResponse"},"api__routes__v1__crvusd__llamma_trades__models__Token":{"properties":{"symbol":{"type":"string","title":"Symbol"},"address":{"type":"string","title":"Address"}},"type":"object","required":["symbol","address"],"title":"Token"},"api__routes__v1__crvusd__markets__models__AllMarketsResponse":{"properties":{"chains":{"additionalProperties":{"$ref":"#/components/schemas/FullMarketResponse"},"type":"object","title":"Chains"}},"type":"object","required":["chains"],"title":"AllMarketsResponse"},"api__routes__v1__crvusd__markets__models__Token":{"properties":{"symbol":{"type":"string","title":"Symbol"},"address":{"type":"string","title":"Address"},"decimals":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Decimals"},"rebasing_yield":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rebasing Yield"},"rebasing_yield_apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rebasing Yield Apr"}},"type":"object","required":["symbol","address"],"title":"Token"},"api__routes__v1__crvusd__markets__models__TopBorrowersResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"controller_address":{"type":"string","title":"Controller Address"},"total_debt":{"type":"number","title":"Total Debt"},"total_debt_usd":{"type":"number","title":"Total Debt Usd"},"total_borrowers":{"type":"integer","title":"Total Borrowers"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"borrowers":{"items":{"$ref":"#/components/schemas/TopBorrower"},"type":"array","title":"Borrowers"}},"type":"object","required":["chain","controller_address","total_debt","total_debt_usd","total_borrowers","page","per_page","borrowers"],"title":"TopBorrowersResponse"},"api__routes__v1__crvusd__markets__models__Units":{"type":"string","enum":["none","day","week"],"title":"Units"},"api__routes__v1__crvusd__oracle_ohlc__models__OracleOhlcResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"controller":{"type":"string","title":"Controller"},"oracle":{"type":"string","title":"Oracle"},"price_source_pools":{"items":{"$ref":"#/components/schemas/api__routes__v1__crvusd__oracle_ohlc__models__OraclePool"},"type":"array","title":"Price Source Pools"},"data":{"items":{"$ref":"#/components/schemas/OracleOhlcLlammaModel"},"type":"array","title":"Data"}},"type":"object","required":["chain","controller","oracle","price_source_pools","data"],"title":"OracleOhlcResponse"},"api__routes__v1__crvusd__oracle_ohlc__models__OraclePool":{"properties":{"address":{"type":"string","title":"Address"},"borrowed_ix":{"type":"integer","title":"Borrowed Ix"},"borrowed_symbol":{"type":"string","title":"Borrowed Symbol"},"borrowed_address":{"type":"string","title":"Borrowed Address"},"collateral_ix":{"type":"integer","title":"Collateral Ix"},"collateral_symbol":{"type":"string","title":"Collateral Symbol"},"collateral_address":{"type":"string","title":"Collateral Address"}},"type":"object","required":["address","borrowed_ix","borrowed_symbol","borrowed_address","collateral_ix","collateral_symbol","collateral_address"],"title":"OraclePool"},"api__routes__v1__crvusd__users__models__FullUserMarketResponse":{"properties":{"count":{"type":"integer","title":"Count"},"markets":{"items":{"$ref":"#/components/schemas/api__routes__v1__crvusd__users__models__UserMarket"},"type":"array","title":"Markets"}},"type":"object","required":["count","markets"],"title":"FullUserMarketResponse"},"api__routes__v1__crvusd__users__models__FullUserMarketsResponse":{"properties":{"user":{"type":"string","title":"User"},"chains":{"additionalProperties":{"$ref":"#/components/schemas/api__routes__v1__crvusd__users__models__FullUserMarketResponse"},"type":"object","title":"Chains"}},"type":"object","required":["user","chains"],"title":"FullUserMarketsResponse"},"api__routes__v1__crvusd__users__models__UserInfo":{"properties":{"user":{"type":"string","title":"User"},"first":{"type":"string","format":"date-time","title":"First"},"last":{"type":"string","format":"date-time","title":"Last"},"soft_liquidation":{"type":"boolean","title":"Soft Liquidation"},"loss":{"type":"string","title":"Loss"},"stablecoin":{"type":"string","title":"Stablecoin"},"debt":{"type":"string","title":"Debt"},"health":{"type":"string","title":"Health"},"health_full":{"type":"string","title":"Health Full"}},"type":"object","required":["user","first","last","soft_liquidation","loss","stablecoin","debt","health","health_full"],"title":"UserInfo"},"api__routes__v1__crvusd__users__models__UserListResponse":{"properties":{"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"count":{"type":"integer","title":"Count"},"data":{"items":{"$ref":"#/components/schemas/api__routes__v1__crvusd__users__models__UserInfo"},"type":"array","title":"Data"}},"type":"object","required":["page","per_page","count","data"],"title":"UserListResponse"},"api__routes__v1__crvusd__users__models__UserMarket":{"properties":{"collateral":{"type":"string","title":"Collateral"},"controller":{"type":"string","title":"Controller"},"first_snapshot":{"type":"string","format":"date-time","title":"First Snapshot"},"last_snapshot":{"type":"string","format":"date-time","title":"Last Snapshot"}},"type":"object","required":["collateral","controller","first_snapshot","last_snapshot"],"title":"UserMarket"},"api__routes__v1__crvusd__users__models__UserMarketResponse":{"properties":{"user":{"type":"string","title":"User"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"count":{"type":"integer","title":"Count"},"markets":{"items":{"$ref":"#/components/schemas/api__routes__v1__crvusd__users__models__UserMarket"},"type":"array","title":"Markets"}},"type":"object","required":["user","page","per_page","count","markets"],"title":"UserMarketResponse"},"api__routes__v1__crvusd__users__models__UserSnapshot":{"properties":{"health":{"type":"number","title":"Health"},"health_full":{"type":"number","title":"Health Full"},"n1":{"type":"integer","title":"N1"},"n2":{"type":"integer","title":"N2"},"n":{"type":"integer","title":"N"},"debt":{"type":"number","title":"Debt"},"collateral":{"type":"number","title":"Collateral"},"stablecoin":{"type":"number","title":"Stablecoin"},"soft_liquidation":{"type":"boolean","title":"Soft Liquidation"},"total_deposited":{"type":"number","title":"Total Deposited"},"loss":{"type":"number","title":"Loss"},"loss_pct":{"type":"number","title":"Loss Pct"},"collateral_up":{"type":"number","title":"Collateral Up"},"oracle_price":{"type":"number","title":"Oracle Price"},"active_band":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Active Band"},"block_number":{"type":"integer","title":"Block Number"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"}},"type":"object","required":["health","health_full","n1","n2","n","debt","collateral","stablecoin","soft_liquidation","total_deposited","loss","loss_pct","collateral_up","oracle_price","block_number","timestamp"],"title":"UserSnapshot"},"api__routes__v1__crvusd__users__models__UserSnapshotResponse":{"properties":{"user":{"type":"string","title":"User"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"count":{"type":"integer","title":"Count"},"data":{"items":{"$ref":"#/components/schemas/api__routes__v1__crvusd__users__models__UserSnapshot"},"type":"array","title":"Data"}},"type":"object","required":["user","page","per_page","count","data"],"title":"UserSnapshotResponse"},"api__routes__v1__crvusd__users__models__UserSortField":{"type":"string","enum":["debt","health","health_full","loss","stablecoin","soft_liquidation","user"],"title":"UserSortField"},"api__routes__v1__dao__fees__models__Coin":{"properties":{"lp_token":{"type":"boolean","title":"Lp Token"},"symbol":{"type":"string","title":"Symbol"},"address":{"type":"string","title":"Address"},"precision":{"type":"integer","title":"Precision"}},"type":"object","required":["lp_token","symbol","address","precision"],"title":"Coin"},"api__routes__v1__dao__voting__models__Coin":{"properties":{"symbol":{"type":"string","title":"Symbol"},"address":{"type":"string","title":"Address"},"precision":{"type":"integer","title":"Precision"}},"type":"object","required":["symbol","address","precision"],"title":"Coin"},"api__routes__v1__lending__chains__models__ChainsResponse":{"properties":{"data":{"items":{"type":"string"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"ChainsResponse"},"api__routes__v1__lending__collateral_events__models__CollateralEvent":{"properties":{"dt":{"type":"string","format":"date-time","title":"Dt"},"transaction_hash":{"type":"string","title":"Transaction Hash"},"type":{"$ref":"#/components/schemas/LendingCollateralChangeEventType"},"user":{"type":"string","title":"User"},"collateral_change":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Collateral Change"},"collateral_change_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Collateral Change Usd"},"loan_change":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Loan Change"},"loan_change_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Loan Change Usd"},"liquidation":{"anyOf":[{"$ref":"#/components/schemas/Liquidation"},{"type":"null"}]},"leverage":{"anyOf":[{"$ref":"#/components/schemas/api__routes__v1__lending__collateral_events__models__Leverage"},{"type":"null"}]},"n1":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N1"},"n2":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N2"},"oracle_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Oracle Price"},"is_in_soft_liquidation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is In Soft Liquidation"},"is_closed":{"type":"boolean","title":"Is Closed"},"is_position_closed":{"type":"boolean","title":"Is Position Closed"}},"type":"object","required":["dt","transaction_hash","type","user","is_closed","is_position_closed"],"title":"CollateralEvent"},"api__routes__v1__lending__collateral_events__models__CollateralEventsResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"controller":{"type":"string","title":"Controller"},"user":{"type":"string","title":"User"},"total_deposit":{"type":"number","title":"Total Deposit"},"total_deposit_from_user":{"type":"number","title":"Total Deposit From User"},"total_borrowed":{"type":"number","title":"Total Borrowed"},"total_deposit_precise":{"type":"string","title":"Total Deposit Precise"},"total_borrowed_precise":{"type":"string","title":"Total Borrowed Precise"},"total_deposit_from_user_precise":{"type":"string","title":"Total Deposit From User Precise"},"total_deposit_from_user_usd_value":{"type":"number","title":"Total Deposit From User Usd Value"},"total_deposit_usd_value":{"type":"number","title":"Total Deposit Usd Value"},"count":{"type":"integer","title":"Count"},"pagination":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pagination"},"page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"},"data":{"items":{"$ref":"#/components/schemas/api__routes__v1__lending__collateral_events__models__CollateralEvent"},"type":"array","title":"Data"}},"type":"object","required":["chain","controller","user","total_deposit","total_deposit_from_user","total_borrowed","total_deposit_precise","total_borrowed_precise","total_deposit_from_user_precise","total_deposit_from_user_usd_value","total_deposit_usd_value","count","data"],"title":"CollateralEventsResponse"},"api__routes__v1__lending__collateral_events__models__Leverage":{"properties":{"event_type":{"$ref":"#/components/schemas/LendingLlammaLeverageEventType"},"user":{"type":"string","title":"User"},"user_collateral":{"type":"number","title":"User Collateral"},"user_borrowed":{"type":"number","title":"User Borrowed"},"user_collateral_from_borrowed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"User Collateral From Borrowed"},"debt":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Debt"},"leverage_collateral":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leverage Collateral"},"state_collateral_used":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"State Collateral Used"},"borrowed_from_state_collateral":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrowed From State Collateral"},"user_collateral_used":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"User Collateral Used"},"borrowed_from_user_collateral":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Borrowed From User Collateral"}},"type":"object","required":["event_type","user","user_collateral","user_borrowed","user_collateral_from_borrowed","debt","leverage_collateral","state_collateral_used","borrowed_from_state_collateral","user_collateral_used","borrowed_from_user_collateral"],"title":"Leverage"},"api__routes__v1__lending__liquidations__models__CollateralRatioDistribution":{"properties":{"cr_decile":{"type":"string","title":"Cr Decile"},"collateral":{"type":"number","title":"Collateral"},"borrowed":{"type":"number","title":"Borrowed"},"debt":{"type":"number","title":"Debt"}},"type":"object","required":["cr_decile","collateral","borrowed","debt"],"title":"CollateralRatioDistribution"},"api__routes__v1__lending__liquidations__models__CollateralRatioDistributionResponse":{"properties":{"median":{"type":"number","title":"Median"},"mean":{"type":"number","title":"Mean"},"std":{"type":"number","title":"Std"},"min":{"type":"number","title":"Min"},"max":{"type":"number","title":"Max"},"data":{"items":{"$ref":"#/components/schemas/api__routes__v1__lending__liquidations__models__CollateralRatioDistribution"},"type":"array","title":"Data"}},"type":"object","required":["median","mean","std","min","max","data"],"title":"CollateralRatioDistributionResponse"},"api__routes__v1__lending__liquidations__models__HealthDistribution":{"properties":{"health_decile":{"type":"string","title":"Health Decile"},"collateral":{"type":"number","title":"Collateral"},"borrowed":{"type":"number","title":"Borrowed"},"debt":{"type":"number","title":"Debt"}},"type":"object","required":["health_decile","collateral","borrowed","debt"],"title":"HealthDistribution"},"api__routes__v1__lending__liquidations__models__HealthDistributionResponse":{"properties":{"median":{"type":"number","title":"Median"},"mean":{"type":"number","title":"Mean"},"std":{"type":"number","title":"Std"},"min":{"type":"number","title":"Min"},"max":{"type":"number","title":"Max"},"data":{"items":{"$ref":"#/components/schemas/api__routes__v1__lending__liquidations__models__HealthDistribution"},"type":"array","title":"Data"}},"type":"object","required":["median","mean","std","min","max","data"],"title":"HealthDistributionResponse"},"api__routes__v1__lending__liquidations__models__HistoricalSoftLoss":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"proportion":{"type":"number","title":"Proportion"},"total_debt":{"type":"number","title":"Total Debt"},"total_debt_under_sl":{"type":"number","title":"Total Debt Under Sl"},"total_debt_under_sl_usd":{"type":"number","title":"Total Debt Under Sl Usd"},"debt_under_sl_ratio":{"type":"number","title":"Debt Under Sl Ratio"},"total_collateral":{"type":"number","title":"Total Collateral"},"total_collateral_under_sl":{"type":"number","title":"Total Collateral Under Sl"},"total_collateral_under_sl_usd":{"type":"number","title":"Total Collateral Under Sl Usd"},"collateral_under_sl_ratio":{"type":"number","title":"Collateral Under Sl Ratio"},"total_borrowed_under_sl":{"type":"number","title":"Total Borrowed Under Sl"},"total_borrowed_under_sl_usd":{"type":"number","title":"Total Borrowed Under Sl Usd"},"total_borrowed":{"type":"number","title":"Total Borrowed"},"borrowed_under_sl_ratio":{"type":"number","title":"Borrowed Under Sl Ratio"}},"type":"object","required":["timestamp","proportion","total_debt","total_debt_under_sl","total_debt_under_sl_usd","debt_under_sl_ratio","total_collateral","total_collateral_under_sl","total_collateral_under_sl_usd","collateral_under_sl_ratio","total_borrowed_under_sl","total_borrowed_under_sl_usd","total_borrowed","borrowed_under_sl_ratio"],"title":"HistoricalSoftLoss"},"api__routes__v1__lending__liquidations__models__HistoricalSoftLossResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/api__routes__v1__lending__liquidations__models__HistoricalSoftLoss"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"HistoricalSoftLossResponse"},"api__routes__v1__lending__liquidations__models__LiquidationDetails":{"properties":{"user":{"type":"string","title":"User"},"liquidator":{"type":"string","title":"Liquidator"},"self":{"type":"boolean","title":"Self"},"collateral_received":{"type":"number","title":"Collateral Received"},"collateral_received_usd":{"type":"number","title":"Collateral Received Usd"},"stablecoin_received":{"type":"number","title":"Stablecoin Received"},"stablecoin_received_usd":{"type":"number","title":"Stablecoin Received Usd"},"oracle_price":{"type":"number","title":"Oracle Price"},"debt":{"type":"number","title":"Debt"},"debt_usd":{"type":"number","title":"Debt Usd"},"n1":{"type":"integer","title":"N1"},"n2":{"type":"integer","title":"N2"},"dt":{"type":"string","format":"date-time","title":"Dt"},"tx":{"type":"string","title":"Tx"},"block":{"type":"integer","title":"Block"}},"type":"object","required":["user","liquidator","self","collateral_received","collateral_received_usd","stablecoin_received","stablecoin_received_usd","oracle_price","debt","debt_usd","n1","n2","dt","tx","block"],"title":"LiquidationDetails"},"api__routes__v1__lending__liquidations__models__LiquidationDetailsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/api__routes__v1__lending__liquidations__models__LiquidationDetails"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"LiquidationDetailsResponse"},"api__routes__v1__lending__liquidations__models__LiquidationOverview":{"properties":{"soft_liquidation_users":{"type":"integer","title":"Soft Liquidation Users"},"median_health":{"type":"number","title":"Median Health"},"average_health":{"type":"number","title":"Average Health"},"debt_weighted_average_health":{"type":"number","title":"Debt Weighted Average Health","default":0.0},"collat_ratio":{"type":"number","title":"Collat Ratio"},"bad_debt":{"type":"number","title":"Bad Debt"},"liquidatable_positions":{"type":"integer","title":"Liquidatable Positions"},"liquidatable_pos_debt":{"type":"string","title":"Liquidatable Pos Debt"},"liquidatable_borrowed":{"type":"string","title":"Liquidatable Borrowed"},"liquidatable_collateral":{"type":"string","title":"Liquidatable Collateral"},"liquidatable_pos_debt_usd":{"type":"number","title":"Liquidatable Pos Debt Usd"},"liquidatable_borrowed_usd":{"type":"number","title":"Liquidatable Borrowed Usd"},"liquidatable_collateral_usd":{"type":"number","title":"Liquidatable Collateral Usd"}},"type":"object","required":["soft_liquidation_users","median_health","average_health","collat_ratio","bad_debt","liquidatable_positions","liquidatable_pos_debt","liquidatable_borrowed","liquidatable_collateral","liquidatable_pos_debt_usd","liquidatable_borrowed_usd","liquidatable_collateral_usd"],"title":"LiquidationOverview"},"api__routes__v1__lending__liquidations__models__MarketBadDebtOverview":{"properties":{"chain":{"type":"string","title":"Chain"},"soft_liquidation_users":{"type":"integer","title":"Soft Liquidation Users"},"bad_debt":{"type":"number","title":"Bad Debt"},"liquidatable_positions":{"type":"integer","title":"Liquidatable Positions"},"liquidatable_pos_debt_usd":{"type":"number","title":"Liquidatable Pos Debt Usd"},"liquidatable_collateral_usd":{"type":"number","title":"Liquidatable Collateral Usd"},"liquidatable_borrowed_usd":{"type":"number","title":"Liquidatable Borrowed Usd"},"market":{"type":"string","title":"Market"},"controller_address":{"type":"string","title":"Controller Address"}},"type":"object","required":["chain","soft_liquidation_users","bad_debt","liquidatable_positions","liquidatable_pos_debt_usd","liquidatable_collateral_usd","liquidatable_borrowed_usd","market","controller_address"],"title":"MarketBadDebtOverview"},"api__routes__v1__lending__liquidations__models__MarketBadDebtResponse":{"properties":{"total_bad_debt":{"type":"number","title":"Total Bad Debt"},"data":{"items":{"$ref":"#/components/schemas/api__routes__v1__lending__liquidations__models__MarketBadDebtOverview"},"type":"array","title":"Data"}},"type":"object","required":["total_bad_debt","data"],"title":"MarketBadDebtResponse"},"api__routes__v1__lending__llamma_events__models__LlammaEventsResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"page":{"type":"integer","title":"Page"},"count":{"type":"integer","title":"Count"},"data":{"items":{"$ref":"#/components/schemas/LendingLlammaEvent"},"type":"array","title":"Data"}},"type":"object","required":["chain","address","page","count","data"],"title":"LlammaEventsResponse"},"api__routes__v1__lending__llamma_ohlc__models__OhlcResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"data":{"items":{"$ref":"#/components/schemas/OhlcLlammaModel"},"type":"array","title":"Data"}},"type":"object","required":["chain","address","data"],"title":"OhlcResponse"},"api__routes__v1__lending__llamma_trades__models__LlammaTrade":{"properties":{"sold_id":{"type":"integer","title":"Sold Id","description":"Pool index of token"},"bought_id":{"type":"integer","title":"Bought Id","description":"Pool index of token"},"token_sold":{"$ref":"#/components/schemas/api__routes__v1__lending__llamma_trades__models__Token"},"token_bought":{"$ref":"#/components/schemas/api__routes__v1__lending__llamma_trades__models__Token"},"amount_sold":{"type":"number","title":"Amount Sold"},"amount_bought":{"type":"number","title":"Amount Bought"},"price":{"type":"number","title":"Price"},"buyer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyer"},"block_number":{"type":"integer","title":"Block Number"},"timestamp":{"type":"integer","title":"Timestamp"},"transaction_hash":{"type":"string","title":"Transaction Hash"}},"type":"object","required":["sold_id","bought_id","token_sold","token_bought","amount_sold","amount_bought","price","block_number","timestamp","transaction_hash"],"title":"LlammaTrade"},"api__routes__v1__lending__llamma_trades__models__LlammaTradesResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"count":{"type":"integer","title":"Count"},"data":{"items":{"$ref":"#/components/schemas/api__routes__v1__lending__llamma_trades__models__LlammaTrade"},"type":"array","title":"Data"}},"type":"object","required":["chain","address","count","data"],"title":"LlammaTradesResponse"},"api__routes__v1__lending__llamma_trades__models__Token":{"properties":{"symbol":{"type":"string","title":"Symbol"},"address":{"type":"string","title":"Address"}},"type":"object","required":["symbol","address"],"title":"Token"},"api__routes__v1__lending__markets__models__AllMarketsResponse":{"properties":{"chains":{"additionalProperties":{"$ref":"#/components/schemas/FullLendingMarketResponse"},"type":"object","title":"Chains"}},"type":"object","required":["chains"],"title":"AllMarketsResponse"},"api__routes__v1__lending__markets__models__Token":{"properties":{"symbol":{"type":"string","title":"Symbol"},"address":{"type":"string","title":"Address"},"decimals":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Decimals"},"rebasing_yield":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rebasing Yield"},"rebasing_yield_apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rebasing Yield Apr"}},"type":"object","required":["symbol","address"],"title":"Token"},"api__routes__v1__lending__markets__models__TopBorrowersResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"controller_address":{"type":"string","title":"Controller Address"},"vault_address":{"type":"string","title":"Vault Address"},"total_debt":{"type":"number","title":"Total Debt"},"total_debt_usd":{"type":"number","title":"Total Debt Usd"},"total_borrowers":{"type":"integer","title":"Total Borrowers"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"borrowers":{"items":{"$ref":"#/components/schemas/TopBorrower"},"type":"array","title":"Borrowers"}},"type":"object","required":["chain","controller_address","vault_address","total_debt","total_debt_usd","total_borrowers","page","per_page","borrowers"],"title":"TopBorrowersResponse"},"api__routes__v1__lending__markets__models__Units":{"type":"string","enum":["none","day","week"],"title":"Units"},"api__routes__v1__lending__oracle_ohlc__models__OracleOhlcResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"controller":{"type":"string","title":"Controller"},"oracle":{"type":"string","title":"Oracle"},"price_source_pools":{"items":{"$ref":"#/components/schemas/api__routes__v1__lending__oracle_ohlc__models__OraclePool"},"type":"array","title":"Price Source Pools"},"data":{"items":{"$ref":"#/components/schemas/OracleOhlcLlammaModel"},"type":"array","title":"Data"}},"type":"object","required":["chain","controller","oracle","price_source_pools","data"],"title":"OracleOhlcResponse"},"api__routes__v1__lending__oracle_ohlc__models__OraclePool":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"borrowed_ix":{"type":"integer","title":"Borrowed Ix"},"borrowed_symbol":{"type":"string","title":"Borrowed Symbol"},"borrowed_address":{"type":"string","title":"Borrowed Address"},"collateral_ix":{"type":"integer","title":"Collateral Ix"},"collateral_symbol":{"type":"string","title":"Collateral Symbol"},"collateral_address":{"type":"string","title":"Collateral Address"}},"type":"object","required":["chain","address","borrowed_ix","borrowed_symbol","borrowed_address","collateral_ix","collateral_symbol","collateral_address"],"title":"OraclePool"},"api__routes__v1__lending__users__models__FullUserMarketResponse":{"properties":{"count":{"type":"integer","title":"Count"},"markets":{"items":{"$ref":"#/components/schemas/api__routes__v1__lending__users__models__UserMarket"},"type":"array","title":"Markets"}},"type":"object","required":["count","markets"],"title":"FullUserMarketResponse"},"api__routes__v1__lending__users__models__FullUserMarketsResponse":{"properties":{"user":{"type":"string","title":"User"},"chains":{"additionalProperties":{"$ref":"#/components/schemas/api__routes__v1__lending__users__models__FullUserMarketResponse"},"type":"object","title":"Chains"}},"type":"object","required":["user","chains"],"title":"FullUserMarketsResponse"},"api__routes__v1__lending__users__models__UserInfo":{"properties":{"user":{"type":"string","title":"User"},"first":{"type":"string","format":"date-time","title":"First"},"last":{"type":"string","format":"date-time","title":"Last"},"debt":{"type":"string","title":"Debt"},"health":{"type":"string","title":"Health"},"health_full":{"type":"string","title":"Health Full"},"loss":{"type":"string","title":"Loss"},"borrowed":{"type":"string","title":"Borrowed"},"collateral":{"type":"string","title":"Collateral"},"soft_liquidation":{"type":"boolean","title":"Soft Liquidation"}},"type":"object","required":["user","first","last","debt","health","health_full","loss","borrowed","collateral","soft_liquidation"],"title":"UserInfo"},"api__routes__v1__lending__users__models__UserListResponse":{"properties":{"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"count":{"type":"integer","title":"Count"},"data":{"items":{"$ref":"#/components/schemas/api__routes__v1__lending__users__models__UserInfo"},"type":"array","title":"Data"}},"type":"object","required":["page","per_page","count","data"],"title":"UserListResponse"},"api__routes__v1__lending__users__models__UserMarket":{"properties":{"market_name":{"type":"string","title":"Market Name"},"controller":{"type":"string","title":"Controller"},"first_snapshot":{"type":"string","format":"date-time","title":"First Snapshot"},"last_snapshot":{"type":"string","format":"date-time","title":"Last Snapshot"}},"type":"object","required":["market_name","controller","first_snapshot","last_snapshot"],"title":"UserMarket"},"api__routes__v1__lending__users__models__UserMarketResponse":{"properties":{"user":{"type":"string","title":"User"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"count":{"type":"integer","title":"Count"},"markets":{"items":{"$ref":"#/components/schemas/api__routes__v1__lending__users__models__UserMarket"},"type":"array","title":"Markets"}},"type":"object","required":["user","page","per_page","count","markets"],"title":"UserMarketResponse"},"api__routes__v1__lending__users__models__UserSnapshot":{"properties":{"health":{"type":"number","title":"Health"},"health_full":{"type":"number","title":"Health Full"},"n1":{"type":"integer","title":"N1"},"n2":{"type":"integer","title":"N2"},"n":{"type":"integer","title":"N"},"debt":{"type":"number","title":"Debt"},"collateral":{"type":"number","title":"Collateral"},"borrowed":{"type":"number","title":"Borrowed"},"soft_liquidation":{"type":"boolean","title":"Soft Liquidation"},"total_deposited":{"type":"number","title":"Total Deposited"},"loss":{"type":"number","title":"Loss"},"loss_pct":{"type":"number","title":"Loss Pct"},"collateral_up":{"type":"number","title":"Collateral Up"},"oracle_price":{"type":"number","title":"Oracle Price"},"active_band":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Active Band"},"block_number":{"type":"integer","title":"Block Number"},"timestamp":{"type":"integer","title":"Timestamp"}},"type":"object","required":["health","health_full","n1","n2","n","debt","collateral","borrowed","soft_liquidation","total_deposited","loss","loss_pct","collateral_up","oracle_price","block_number","timestamp"],"title":"UserSnapshot"},"api__routes__v1__lending__users__models__UserSnapshotResponse":{"properties":{"user":{"type":"string","title":"User"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"count":{"type":"integer","title":"Count"},"data":{"items":{"$ref":"#/components/schemas/api__routes__v1__lending__users__models__UserSnapshot"},"type":"array","title":"Data"}},"type":"object","required":["user","page","per_page","count","data"],"title":"UserSnapshotResponse"},"api__routes__v1__lending__users__models__UserSortField":{"type":"string","enum":["debt","health","health_full","loss","borrowed","collateral","soft_liquidation","user"],"title":"UserSortField"},"api__routes__v1__lp_ohlc__models__OhlcResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"data":{"items":{"$ref":"#/components/schemas/OhlcModel"},"type":"array","title":"Data"}},"type":"object","required":["chain","address","data"],"title":"OhlcResponse"},"api__routes__v1__ohlc__models__OhlcResponse":{"properties":{"chain":{"type":"string","title":"Chain"},"address":{"type":"string","title":"Address"},"data":{"items":{"$ref":"#/components/schemas/OhlcModel"},"type":"array","title":"Data"}},"type":"object","required":["chain","address","data"],"title":"OhlcResponse"},"api__routes__v1__pool_snapshots__models__Units":{"type":"string","enum":["none","day","week"],"title":"Units"},"api__routes__v1__refuel__models__Units":{"type":"string","enum":["raw","hour","day"],"title":"Units"},"api__routes__v1__trades__models__Token":{"properties":{"symbol":{"type":"string","title":"Symbol"},"address":{"type":"string","title":"Address"},"pool_index":{"type":"integer","title":"Pool Index"},"event_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Event Index"}},"type":"object","required":["symbol","address","pool_index"],"title":"Token"},"api__routes__v1__trading_volume__models__Units":{"type":"string","enum":["week","day","hour"],"title":"Units"},"api__routes__v1__utils__Units":{"type":"string","enum":["day","hour","minute"],"title":"Units"}}}}