Morpho Market Windows
Returns windowed (trailing-period) performance metrics for Morpho Blue markets on supported EVM chains. For each market it reports TVL, deposit/withdrawal flows, borrow volume, and supply/borrow APY changes over a selected trailing timeframe (7d, 30d, 90d, or 365d).
GET
https://api.cambrian.org/evm/lending/morpho/markets/windows
Parameters
timeframe* (string)
Trailing window for historical data results. One of 7d, 30d, 90d, 365d.
market_id (string)
ID of the Morpho Blue market
loan_address (string)
Loan token address. See tokens for valid addresses.
collateral_address (string)
Collateral token address. See tokens for valid addresses.
chain_id (integer)
EVM chain ID.
min_tvl_usd (integer)
Minimum current TVL in USD of the market, not the window average.
limit (integer)
Limit the number of results.
offset (integer)
Offset the results, allows you to skip a number of rows before starting to return rows.
order_asc (array)
List of column names to order by in ascending order divided by comma. Leave empty items to combine with descending order
order_desc (array)
List of column names to order by in descending order divided by comma. Leave empty items to combine with ascending order
Responses
Code
Description
200
Successful response
Media type: application/vnd.cambrian.table.v1.0.0+json
[
{
"columns": [
{
"name": "chainId",
"type": "UInt16"
},
{
"name": "protocolId",
"type": "String"
},
{
"name": "marketId",
"type": "FixedString(66)"
},
{
"name": "loanAddress",
"type": "FixedString(42)"
},
{
"name": "loanSymbol",
"type": "Nullable(String)"
},
{
"name": "collateralAddress",
"type": "FixedString(42)"
},
{
"name": "collateralSymbol",
"type": "Nullable(String)"
},
{
"name": "tvlUsd",
"type": "Float64"
},
{
"name": "depositsUsd",
"type": "Float64"
},
{
"name": "withdrawalsUsd",
"type": "Float64"
},
{
"name": "netFlowUsd",
"type": "Float64"
},
{
"name": "borrowsUsd",
"type": "Float64"
},
{
"name": "tvlUsdChange",
"type": "Float64"
},
{
"name": "availableLiquidityChangeUsd",
"type": "Float64"
},
{
"name": "supplyApy",
"type": "Float64"
},
{
"name": "supplyBaseApy",
"type": "Float64"
},
{
"name": "supplyExtraRewardsApy",
"type": "Float64"
},
{
"name": "borrowApy",
"type": "Float64"
},
{
"name": "utilizationRate",
"type": "Float64"
},
{
"name": "updatedAt",
"type": "DateTime('UTC')"
}
],
"data": [
[
8453,
"morpho-blue",
"0x00219077aa239da531666a36ada5c92fda9a359750445635e85921624ca67fe5",
"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
"cbBTC",
"0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
"GMORPHO",
25749176731.031727,
0,
0,
0,
0,
-3927416109.0155563,
-0.00019371407393201372,
2979.9579420927366,
2979.9579420927366,
0,
2979.957942092885,
0.9999999999999502,
"2026-03-26T17:18:55+00:00"
],
[
8453,
"morpho-blue",
"0x9103c3b4e834476c9a62ea009ba2c884ee42e94e6e314a26f04d312434191836",
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"USDC",
"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
"cbBTC",
1762708248.612104,
671191501.280885,
826997073.896487,
-155805572.61560202,
65150162.131034,
-156010642.7421751,
-64096660.69064093,
0.045220708933142964,
0.045220708933142964,
0,
0.052760483330341355,
0.8571407545186678,
"2026-11-18T12:42:28+00:00"
],
[
8453,
"morpho-blue",
"0xe1986e80099257c65dd18091ec7e34752ae2336870a5649f20c450c9c4931fb8",
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"USDC",
"0x4bcaf180df5b13c0441fe41a66e9638a2a410c6d",
"HERMES",
465629076.665547,
0,
0,
0,
0,
0,
0,
2979.9372575086836,
2979.9372575086836,
0,
2979.9372575086836,
1,
"2026-11-08T23:29:33+00:00"
],
[
8453,
"morpho-blue",
"0x54cf9be57fdfa6457a660991907434ff9d295c465a603a50126ff647d50b7354",
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"USDC",
"0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34",
"USDe",
369256557.533293,
193469574.298946,
193893157.248772,
-423582.9498260021,
56726237.902160004,
13006002.287990034,
-4877194.515462995,
0.04278921526734588,
0.04278921526734588,
0,
0.048008543770084615,
0.8904071067407212,
"2026-11-18T12:41:42+00:00"
],
[
8453,
"morpho-blue",
"0x017f24e318f06b555716a3852f33d01c6d04d52505936ccd7ac13322b137e596",
"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
"cbBTC",
"0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
"GMORPHO",
231477477.26558432,
0,
0,
0,
0,
231477477.26558432,
0,
0,
0,
0,
0,
1,
"2025-04-22T21:03:51+00:00"
],
[
8453,
"morpho-blue",
"0x0918f1be3b13c3ca2f8a737496efc9fbcd5031b09145fe01851af74f850c4b60",
"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
"cbBTC",
"0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
"GMORPHO",
231477477.26558432,
0,
0,
0,
0,
231477477.26558432,
0,
0,
0,
0,
0,
1,
"2025-04-22T21:03:51+00:00"
],
[
8453,
"morpho-blue",
"0x0c1b4c8670f03a87548d6f7fa79118c98d24f3ea0d56e21934ef0f1b64f2170d",
"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
"cbBTC",
"0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
"GMORPHO",
231477477.26558432,
0,
0,
0,
0,
231477477.26558432,
0,
0,
0,
0,
0,
1,
"2025-04-22T21:03:51+00:00"
],
[
8453,
"morpho-blue",
"0x0d090f3c9534d606691234900733fa18fbc1cd55036d615d2b49e038b7bab45c",
"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
"cbBTC",
"0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
"GMORPHO",
231477477.26558432,
0,
0,
0,
0,
231477477.26558432,
0,
0,
0,
0,
0,
1,
"2025-04-22T21:03:51+00:00"
],
[
8453,
"morpho-blue",
"0x144da00c4202f8eba04c7e5edf2e47a0618eac8094b5b90c4a0a6b553dd2657e",
"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
"cbBTC",
"0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
"GMORPHO",
231477477.26558432,
0,
0,
0,
0,
231477477.26558432,
0,
0,
0,
0,
0,
1,
"2025-04-22T21:03:51+00:00"
],
[
8453,
"morpho-blue",
"0x168df050b543b559df6405673b839c6d3bd83686cac702d8ba6c7942320cb8e3",
"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
"cbBTC",
"0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
"GMORPHO",
231477477.26558432,
0,
0,
0,
0,
231477477.26558432,
0,
0,
0,
0,
0,
1,
"2025-04-22T21:03:51+00:00"
]
],
"rows": 10
}
]
400
Bad Request: Invalid request parameters or malformed request.
401
Unauthorized: Missing or invalid API key. Include X-API-Key header with your request.
403
Forbidden: Invalid API key or insufficient permissions to access this resource.
404
Not Found: Endpoint or resource does not exist.
408
Request Timeout: Request took too long to process. Try again.
500
Internal Server Error: An unexpected error occurred while processing your request.
503
Service Unavailable: The server is temporarily unable to handle the request. Please try again later.
Examples
1. Retrieve 7-day windowed metrics for Morpho Blue markets
This example fetches the trailing 7-day performance window for Morpho Blue markets, limited to 10 results.
curl
curl -X GET "https://api.cambrian.org/evm/lending/morpho/markets/windows?timeframe=7d&limit=10" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"
Response:
JSON
1[
2 {
3 "columns": [
4 {
5 "name": "chainId",
6 "type": "UInt16"
7 },
8 {
9 "name": "protocolId",
10 "type": "String"
11 },
12 {
13 "name": "marketId",
14 "type": "FixedString(66)"
15 },
16 {
17 "name": "loanAddress",
18 "type": "FixedString(42)"
19 },
20 {
21 "name": "loanSymbol",
22 "type": "Nullable(String)"
23 },
24 {
25 "name": "collateralAddress",
26 "type": "FixedString(42)"
27 },
28 {
29 "name": "collateralSymbol",
30 "type": "Nullable(String)"
31 },
32 {
33 "name": "tvlUsd",
34 "type": "Float64"
35 },
36 {
37 "name": "depositsUsd",
38 "type": "Float64"
39 },
40 {
41 "name": "withdrawalsUsd",
42 "type": "Float64"
43 },
44 {
45 "name": "netFlowUsd",
46 "type": "Float64"
47 },
48 {
49 "name": "borrowsUsd",
50 "type": "Float64"
51 },
52 {
53 "name": "tvlUsdChange",
54 "type": "Float64"
55 },
56 {
57 "name": "availableLiquidityChangeUsd",
58 "type": "Float64"
59 },
60 {
61 "name": "supplyApy",
62 "type": "Float64"
63 },
64 {
65 "name": "supplyBaseApy",
66 "type": "Float64"
67 },
68 {
69 "name": "supplyExtraRewardsApy",
70 "type": "Float64"
71 },
72 {
73 "name": "borrowApy",
74 "type": "Float64"
75 },
76 {
77 "name": "utilizationRate",
78 "type": "Float64"
79 },
80 {
81 "name": "updatedAt",
82 "type": "DateTime('UTC')"
83 }
84 ],
85 "data": [
86 [
87 8453,
88 "morpho-blue",
89 "0x00219077aa239da531666a36ada5c92fda9a359750445635e85921624ca67fe5",
90 "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
91 "cbBTC",
92 "0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
93 "GMORPHO",
94 25749176731.031727,
95 0,
96 0,
97 0,
98 0,
99 -3927416109.0155563,
100 -0.00019371407393201372,
101 2979.9579420927366,
102 2979.9579420927366,
103 0,
104 2979.957942092885,
105 0.9999999999999502,
106 "2026-03-26T17:18:55+00:00"
107 ],
108 [
109 8453,
110 "morpho-blue",
111 "0x9103c3b4e834476c9a62ea009ba2c884ee42e94e6e314a26f04d312434191836",
112 "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
113 "USDC",
114 "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
115 "cbBTC",
116 1762708248.612104,
117 671191501.280885,
118 826997073.896487,
119 -155805572.61560202,
120 65150162.131034,
121 -156010642.7421751,
122 -64096660.69064093,
123 0.045220708933142964,
124 0.045220708933142964,
125 0,
126 0.052760483330341355,
127 0.8571407545186678,
128 "2026-11-18T12:42:28+00:00"
129 ],
130 [
131 8453,
132 "morpho-blue",
133 "0xe1986e80099257c65dd18091ec7e34752ae2336870a5649f20c450c9c4931fb8",
134 "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
135 "USDC",
136 "0x4bcaf180df5b13c0441fe41a66e9638a2a410c6d",
137 "HERMES",
138 465629076.665547,
139 0,
140 0,
141 0,
142 0,
143 0,
144 0,
145 2979.9372575086836,
146 2979.9372575086836,
147 0,
148 2979.9372575086836,
149 1,
150 "2026-11-08T23:29:33+00:00"
151 ],
152 [
153 8453,
154 "morpho-blue",
155 "0x54cf9be57fdfa6457a660991907434ff9d295c465a603a50126ff647d50b7354",
156 "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
157 "USDC",
158 "0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34",
159 "USDe",
160 369256557.533293,
161 193469574.298946,
162 193893157.248772,
163 -423582.9498260021,
164 56726237.902160004,
165 13006002.287990034,
166 -4877194.515462995,
167 0.04278921526734588,
168 0.04278921526734588,
169 0,
170 0.048008543770084615,
171 0.8904071067407212,
172 "2026-11-18T12:41:42+00:00"
173 ],
174 [
175 8453,
176 "morpho-blue",
177 "0x017f24e318f06b555716a3852f33d01c6d04d52505936ccd7ac13322b137e596",
178 "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
179 "cbBTC",
180 "0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
181 "GMORPHO",
182 231477477.26558432,
183 0,
184 0,
185 0,
186 0,
187 231477477.26558432,
188 0,
189 0,
190 0,
191 0,
192 0,
193 1,
194 "2025-04-22T21:03:51+00:00"
195 ],
196 [
197 8453,
198 "morpho-blue",
199 "0x0918f1be3b13c3ca2f8a737496efc9fbcd5031b09145fe01851af74f850c4b60",
200 "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
201 "cbBTC",
202 "0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
203 "GMORPHO",
204 231477477.26558432,
205 0,
206 0,
207 0,
208 0,
209 231477477.26558432,
210 0,
211 0,
212 0,
213 0,
214 0,
215 1,
216 "2025-04-22T21:03:51+00:00"
217 ],
218 [
219 8453,
220 "morpho-blue",
221 "0x0c1b4c8670f03a87548d6f7fa79118c98d24f3ea0d56e21934ef0f1b64f2170d",
222 "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
223 "cbBTC",
224 "0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
225 "GMORPHO",
226 231477477.26558432,
227 0,
228 0,
229 0,
230 0,
231 231477477.26558432,
232 0,
233 0,
234 0,
235 0,
236 0,
237 1,
238 "2025-04-22T21:03:51+00:00"
239 ],
240 [
241 8453,
242 "morpho-blue",
243 "0x0d090f3c9534d606691234900733fa18fbc1cd55036d615d2b49e038b7bab45c",
244 "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
245 "cbBTC",
246 "0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
247 "GMORPHO",
248 231477477.26558432,
249 0,
250 0,
251 0,
252 0,
253 231477477.26558432,
254 0,
255 0,
256 0,
257 0,
258 0,
259 1,
260 "2025-04-22T21:03:51+00:00"
261 ],
262 [
263 8453,
264 "morpho-blue",
265 "0x144da00c4202f8eba04c7e5edf2e47a0618eac8094b5b90c4a0a6b553dd2657e",
266 "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
267 "cbBTC",
268 "0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
269 "GMORPHO",
270 231477477.26558432,
271 0,
272 0,
273 0,
274 0,
275 231477477.26558432,
276 0,
277 0,
278 0,
279 0,
280 0,
281 1,
282 "2025-04-22T21:03:51+00:00"
283 ],
284 [
285 8453,
286 "morpho-blue",
287 "0x168df050b543b559df6405673b839c6d3bd83686cac702d8ba6c7942320cb8e3",
288 "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
289 "cbBTC",
290 "0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
291 "GMORPHO",
292 231477477.26558432,
293 0,
294 0,
295 0,
296 0,
297 231477477.26558432,
298 0,
299 0,
300 0,
301 0,
302 0,
303 1,
304 "2025-04-22T21:03:51+00:00"
305 ]
306 ],
307 "rows": 10
308 }
309]
2 {
3 "columns": [
4 {
5 "name": "chainId",
6 "type": "UInt16"
7 },
8 {
9 "name": "protocolId",
10 "type": "String"
11 },
12 {
13 "name": "marketId",
14 "type": "FixedString(66)"
15 },
16 {
17 "name": "loanAddress",
18 "type": "FixedString(42)"
19 },
20 {
21 "name": "loanSymbol",
22 "type": "Nullable(String)"
23 },
24 {
25 "name": "collateralAddress",
26 "type": "FixedString(42)"
27 },
28 {
29 "name": "collateralSymbol",
30 "type": "Nullable(String)"
31 },
32 {
33 "name": "tvlUsd",
34 "type": "Float64"
35 },
36 {
37 "name": "depositsUsd",
38 "type": "Float64"
39 },
40 {
41 "name": "withdrawalsUsd",
42 "type": "Float64"
43 },
44 {
45 "name": "netFlowUsd",
46 "type": "Float64"
47 },
48 {
49 "name": "borrowsUsd",
50 "type": "Float64"
51 },
52 {
53 "name": "tvlUsdChange",
54 "type": "Float64"
55 },
56 {
57 "name": "availableLiquidityChangeUsd",
58 "type": "Float64"
59 },
60 {
61 "name": "supplyApy",
62 "type": "Float64"
63 },
64 {
65 "name": "supplyBaseApy",
66 "type": "Float64"
67 },
68 {
69 "name": "supplyExtraRewardsApy",
70 "type": "Float64"
71 },
72 {
73 "name": "borrowApy",
74 "type": "Float64"
75 },
76 {
77 "name": "utilizationRate",
78 "type": "Float64"
79 },
80 {
81 "name": "updatedAt",
82 "type": "DateTime('UTC')"
83 }
84 ],
85 "data": [
86 [
87 8453,
88 "morpho-blue",
89 "0x00219077aa239da531666a36ada5c92fda9a359750445635e85921624ca67fe5",
90 "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
91 "cbBTC",
92 "0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
93 "GMORPHO",
94 25749176731.031727,
95 0,
96 0,
97 0,
98 0,
99 -3927416109.0155563,
100 -0.00019371407393201372,
101 2979.9579420927366,
102 2979.9579420927366,
103 0,
104 2979.957942092885,
105 0.9999999999999502,
106 "2026-03-26T17:18:55+00:00"
107 ],
108 [
109 8453,
110 "morpho-blue",
111 "0x9103c3b4e834476c9a62ea009ba2c884ee42e94e6e314a26f04d312434191836",
112 "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
113 "USDC",
114 "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
115 "cbBTC",
116 1762708248.612104,
117 671191501.280885,
118 826997073.896487,
119 -155805572.61560202,
120 65150162.131034,
121 -156010642.7421751,
122 -64096660.69064093,
123 0.045220708933142964,
124 0.045220708933142964,
125 0,
126 0.052760483330341355,
127 0.8571407545186678,
128 "2026-11-18T12:42:28+00:00"
129 ],
130 [
131 8453,
132 "morpho-blue",
133 "0xe1986e80099257c65dd18091ec7e34752ae2336870a5649f20c450c9c4931fb8",
134 "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
135 "USDC",
136 "0x4bcaf180df5b13c0441fe41a66e9638a2a410c6d",
137 "HERMES",
138 465629076.665547,
139 0,
140 0,
141 0,
142 0,
143 0,
144 0,
145 2979.9372575086836,
146 2979.9372575086836,
147 0,
148 2979.9372575086836,
149 1,
150 "2026-11-08T23:29:33+00:00"
151 ],
152 [
153 8453,
154 "morpho-blue",
155 "0x54cf9be57fdfa6457a660991907434ff9d295c465a603a50126ff647d50b7354",
156 "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
157 "USDC",
158 "0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34",
159 "USDe",
160 369256557.533293,
161 193469574.298946,
162 193893157.248772,
163 -423582.9498260021,
164 56726237.902160004,
165 13006002.287990034,
166 -4877194.515462995,
167 0.04278921526734588,
168 0.04278921526734588,
169 0,
170 0.048008543770084615,
171 0.8904071067407212,
172 "2026-11-18T12:41:42+00:00"
173 ],
174 [
175 8453,
176 "morpho-blue",
177 "0x017f24e318f06b555716a3852f33d01c6d04d52505936ccd7ac13322b137e596",
178 "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
179 "cbBTC",
180 "0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
181 "GMORPHO",
182 231477477.26558432,
183 0,
184 0,
185 0,
186 0,
187 231477477.26558432,
188 0,
189 0,
190 0,
191 0,
192 0,
193 1,
194 "2025-04-22T21:03:51+00:00"
195 ],
196 [
197 8453,
198 "morpho-blue",
199 "0x0918f1be3b13c3ca2f8a737496efc9fbcd5031b09145fe01851af74f850c4b60",
200 "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
201 "cbBTC",
202 "0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
203 "GMORPHO",
204 231477477.26558432,
205 0,
206 0,
207 0,
208 0,
209 231477477.26558432,
210 0,
211 0,
212 0,
213 0,
214 0,
215 1,
216 "2025-04-22T21:03:51+00:00"
217 ],
218 [
219 8453,
220 "morpho-blue",
221 "0x0c1b4c8670f03a87548d6f7fa79118c98d24f3ea0d56e21934ef0f1b64f2170d",
222 "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
223 "cbBTC",
224 "0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
225 "GMORPHO",
226 231477477.26558432,
227 0,
228 0,
229 0,
230 0,
231 231477477.26558432,
232 0,
233 0,
234 0,
235 0,
236 0,
237 1,
238 "2025-04-22T21:03:51+00:00"
239 ],
240 [
241 8453,
242 "morpho-blue",
243 "0x0d090f3c9534d606691234900733fa18fbc1cd55036d615d2b49e038b7bab45c",
244 "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
245 "cbBTC",
246 "0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
247 "GMORPHO",
248 231477477.26558432,
249 0,
250 0,
251 0,
252 0,
253 231477477.26558432,
254 0,
255 0,
256 0,
257 0,
258 0,
259 1,
260 "2025-04-22T21:03:51+00:00"
261 ],
262 [
263 8453,
264 "morpho-blue",
265 "0x144da00c4202f8eba04c7e5edf2e47a0618eac8094b5b90c4a0a6b553dd2657e",
266 "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
267 "cbBTC",
268 "0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
269 "GMORPHO",
270 231477477.26558432,
271 0,
272 0,
273 0,
274 0,
275 231477477.26558432,
276 0,
277 0,
278 0,
279 0,
280 0,
281 1,
282 "2025-04-22T21:03:51+00:00"
283 ],
284 [
285 8453,
286 "morpho-blue",
287 "0x168df050b543b559df6405673b839c6d3bd83686cac702d8ba6c7942320cb8e3",
288 "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
289 "cbBTC",
290 "0xda1c2c3c8fad503662e41e324fc644dc2c5e0ccd",
291 "GMORPHO",
292 231477477.26558432,
293 0,
294 0,
295 0,
296 0,
297 231477477.26558432,
298 0,
299 0,
300 0,
301 0,
302 0,
303 1,
304 "2025-04-22T21:03:51+00:00"
305 ]
306 ],
307 "rows": 10
308 }
309]
x402 Payment Option
This endpoint supports pay-per-use access via the x402 payment protocol (v2): pay $0.05 USDC per request using blockchain micropayments. No API key required.
Quickstart (Typescript)
bash
npm install @x402/fetch @x402/evm viem
TypeScript
1import { x402Client } from "@x402/core/client";
2import { ExactEvmScheme } from "@x402/evm/exact/client";
3import { wrapFetchWithPayment } from "@x402/fetch";
4import { privateKeyToAccount } from "viem/accounts";
5const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY as `0x${string}`);
6const client = new x402Client();
7client.register("eip155:*", new ExactEvmScheme(signer));
8const fetchWithPayment = wrapFetchWithPayment(fetch, client);
9const response = await fetchWithPayment(
10 "https://x402.cambrian.org/evm/lending/morpho/markets/windows"
11);
12const data = await response.json();
2import { ExactEvmScheme } from "@x402/evm/exact/client";
3import { wrapFetchWithPayment } from "@x402/fetch";
4import { privateKeyToAccount } from "viem/accounts";
5const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY as `0x${string}`);
6const client = new x402Client();
7client.register("eip155:*", new ExactEvmScheme(signer));
8const fetchWithPayment = wrapFetchWithPayment(fetch, client);
9const response = await fetchWithPayment(
10 "https://x402.cambrian.org/evm/lending/morpho/markets/windows"
11);
12const data = await response.json();
Quickstart (Python)
bash
pip install "x402[httpx]"
Python
1import asyncio, os
2from eth_account import Account
3from x402 import x402Client
4from x402.http.clients import x402HttpxClient
5from x402.mechanisms.evm import EthAccountSigner
6from x402.mechanisms.evm.exact.register import register_exact_evm_client
7async def main():
8 client = x402Client()
9 account = Account.from_key(os.getenv("EVM_PRIVATE_KEY"))
10 register_exact_evm_client(client, EthAccountSigner(account))
11 async with x402HttpxClient(client) as http:
12 response = await http.get("https://x402.cambrian.org/evm/lending/morpho/markets/windows")
13 print(response.json())
14asyncio.run(main())
2from eth_account import Account
3from x402 import x402Client
4from x402.http.clients import x402HttpxClient
5from x402.mechanisms.evm import EthAccountSigner
6from x402.mechanisms.evm.exact.register import register_exact_evm_client
7async def main():
8 client = x402Client()
9 account = Account.from_key(os.getenv("EVM_PRIVATE_KEY"))
10 register_exact_evm_client(client, EthAccountSigner(account))
11 async with x402HttpxClient(client) as http:
12 response = await http.get("https://x402.cambrian.org/evm/lending/morpho/markets/windows")
13 print(response.json())
14asyncio.run(main())
Payment Flow
- Send a normal request to the endpoint (no API key needed)
- Server returns 402 Payment Required with payment details
- The x402 SDK automatically signs a payment authorization with your wallet
- The SDK resubmits the request with the signed payment
- Server verifies payment and returns the API response
The x402 SDK handles steps 2 through 5 automatically.
Network: Base (chain ID 8453) | Currency: USDC | Price: $0.05 per request