Maple
Search…
Public
Public GraphQL resolvers for Maple Finance Protocol
The public GraphQL endpoint is https://api.maple.finance/public. No authentication headers are required.

Maple Globals

Request
Response
Entities
1
query {
2
mapleGlobals {
3
totalLiquidity
4
totalLiquidityProvided
5
totalLoanOriginations
6
totalTreasuryFees
7
totalCurrentLoaned
8
aggregateLpApy
9
totalPools
10
totalFinalizedPools
11
totalLoans
12
totalActiveLoans
13
totalValueLocked
14
mpl {
15
address
16
symbol
17
decimals
18
price
19
}
20
liquidityAssets {
21
address
22
symbol
23
decimals
24
price
25
}
26
collateralAssets {
27
address
28
symbol
29
decimals
30
price
31
}
32
stakeAssets {
33
address
34
symbol
35
decimals
36
price
37
}
38
defaultGracePeriod
39
swapOutRequired
40
fundingPeriod
41
investorFee
42
treasuryFee
43
maxSwapSlippage
44
minLoanEquity
45
lpCooldownPeriod
46
lpWithdrawWindow
47
stakerUnstakeWindow
48
stakerCooldownPeriod
49
}
50
}
Copied!
1
{
2
"data": {
3
"mapleGlobals": {
4
"totalLiquidity": 0,
5
"totalLiquidityProvided": "2500000000",
6
"totalLoanOriginations": "1000000000",
7
"totalTreasuryFees": "5000000",
8
"totalCurrentLoaned": "1",
9
"aggregateLpApy": "0",
10
"totalPools": 1,
11
"totalFinalizedPools": 1,
12
"totalLoans": 1,
13
"totalActiveLoans": 0,
14
"totalValueLocked": 219.9225292,
15
"mpl": {
16
"address": "0x9809cb0342e120365fe10ebf84f8ec5375693eb5",
17
"symbol": "MPL",
18
"decimals": 18,
19
"price": 1207824
20
},
21
"liquidityAssets": [
22
{
23
"address": "0xa3d55b520f678e7b3c6020439e387b3bcb727198",
24
"symbol": "USDC",
25
"decimals": 6,
26
"price": 100000000
27
}
28
],
29
"collateralAssets": [
30
{
31
"address": "0x1fea817089ffe74d50815496d6ae15da6bc1ce41",
32
"symbol": "WETH",
33
"decimals": 18,
34
"price": 100000000
35
},
36
{
37
"address": "0x7dbbaa329613ac04b4381d3d64c2adb13bd60534",
38
"symbol": "DAI",
39
"decimals": 18,
40
"price": 100000000
41
},
42
{
43
"address": "0xa23fac1cf3f1abb2bdd48579346653a765e31cb6",
44
"symbol": "WBTC",
45
"decimals": 8,
46
"price": 100000000
47
}
48
],
49
"stakeAssets": [
50
{
51
"address": "0x892689147ab1ccf60237696de6a028b8959561cb",
52
"symbol": "BPT",
53
"decimals": 18,
54
"price": 21980198020
55
}
56
],
57
"defaultGracePeriod": 172800,
58
"swapOutRequired": 20000,
59
"fundingPeriod": 432000,
60
"investorFee": 25,
61
"treasuryFee": 25,
62
"maxSwapSlippage": 500,
63
"minLoanEquity": 1000,
64
"lpCooldownPeriod": 432000,
65
"lpWithdrawWindow": 86400,
66
"stakerUnstakeWindow": 86400,
67
"stakerCooldownPeriod": 432000
68
}
69
}
70
}
Copied!
1
type Asset {
2
address: String
3
symbol: String
4
decimals: Int
5
price: Float
6
}
7
8
type MapleGlobals {
9
totalLiquidity: Float
10
totalLiquidityProvided: String
11
totalLoanOriginations: String
12
totalTreasuryFees: String
13
totalCurrentLoaned: String
14
aggregateLpApy: String
15
totalPools: Float
16
totalFinalizedPools: Float
17
totalLoans: Float
18
totalActiveLoans: Float
19
totalValueLocked: Float
20
mpl: Asset
21
liquidityAssets: [Asset]
22
collateralAssets: [Asset]
23
stakeAssets: [Asset]
24
defaultGracePeriod: Float
25
swapOutRequired: Float
26
fundingPeriod: Float
27
investorFee: Float
28
treasuryFee: Float
29
maxSwapSlippage: Float
30
minLoanEquity: Float
31
lpCooldownPeriod: Float
32
lpWithdrawWindow: Float
33
stakerUnstakeWindow: Float
34
stakerCooldownPeriod: Float
35
}
Copied!

All Pools

Request
Response
Entities
1
query AllPools {
2
allPools {
3
list {
4
_id
5
poolDelegate {
6
name
7
twitter
8
companyName
9
}
10
stakingFee
11
delegateFee
12
ongoingFee
13
name
14
numActiveLoans
15
lpApy
16
stakingApy
17
farmingApy
18
stakeRewardsApy
19
balance
20
liquidity
21
stake
22
currentLoaned
23
strategy
24
poolName
25
contractAddress
26
stakeAsset {
27
address
28
symbol
29
}
30
liquidityCap
31
liquidityAsset {
32
address
33
symbol
34
}
35
createdAt
36
}
37
}
38
}
39
Copied!
1
{
2
"data": {
3
"allPools": {
4
"list": [
5
{
6
"_id": "60e3e70cd993f30012ceae40",
7
"poolDelegate": {
8
"name": "Balder Bomans",
9
"twitter": "@maven11capital",
10
"companyName": "Maven 11 Capital"
11
},
12
"stakingFee": "1000",
13
"delegateFee": "1000",
14
"ongoingFee": "2000",
15
"name": "Maple Pool Token",
16
"numActiveLoans": "14",
17
"lpApy": "901",
18
"stakingApy": "0",
19
"farmingApy": "1309",
20
"stakeRewardsApy": "809",
21
"balance": "68716215934881",
22
"liquidity": "116215934881",
23
"stake": "247403831141476416291",
24
"currentLoaned": "68600000000000",
25
"strategy": "The strategy of this pool will be to target borrowers with capital intensive businesses supported by a strong balance sheet. The Pool Delegate will methodically build the credit history of the borrowers by starting with smaller loans. These will grow in size as PD becomes more comfortable with the counter parties. Creditworthiness is assessed based on balance sheet, recent profitability, leverage, liquidity risk, internal (risk) control systems, strength and track record of the team, among other things. The pool is USDC denominated. Collateralization ratios can vary between 0 - 100%.",
26
"poolName": "Maven 11 - USDC 01",
27
"contractAddress": "0x6f6c8013f639979c84b756c7fc1500eb5af18dc4",
28
"stakeAsset": {
29
"address": null,
30
"symbol": "BPT"
31
},
32
"liquidityCap": "75000000000000",
33
"liquidityAsset": {
34
"address": null,
35
"symbol": "USDC"
36
},
37
"createdAt": "2021-07-06T05:15:56.092Z"
38
},
39
{
40
"_id": "60a48265ec0b150011480d2a",
41
"poolDelegate": {
42
"name": "Josh Green",
43
"twitter": "@OrthoTrading",
44
"companyName": "Orthogonal Trading"
45
},
46
"stakingFee": "1000",
47
"delegateFee": "1000",
48
"ongoingFee": "2000",
49
"name": "Maple Pool Token",
50
"numActiveLoans": "15",
51
"lpApy": "821",
52
"stakingApy": "0",
53
"farmingApy": "1376",
54
"stakeRewardsApy": "1371",
55
"balance": "101007145602468",
56
"liquidity": "3707145602468",
57
"stake": "346781754665097345072",
58
"currentLoaned": "97300000000000",
59
"strategy": "The strategy of this Pool will be to target industry-leading funds and prop trading desks. The focus will be on mitigating risk by lending to market makers and arbitrage traders to avoid taking directional risk on the prices of crypto assets. Borrowers' creditworthiness is assessed based on how they manage leverage, liquidity risk, operational risk controls, management's level of experience, their balance sheet strength and recent financial performance. Loans in the pool will generally vary between 0 and 50% collateralization and target a weighted average APY of low-to-mid teens in line with the market for stablecoin lending.",
60
"poolName": "Orthogonal Trading - USDC01",
61
"contractAddress": "0xfebd6f15df3b73dc4307b1d7e65d46413e710c27",
62
"stakeAsset": {
63
"address": null,
64
"symbol": "BPT"
65
},
66
"liquidityCap": "150000000000000",
67
"liquidityAsset": {
68
"address": null,
69
"symbol": "USDC"
70
},
71
"createdAt": "2021-05-19T03:13:41.035Z"
72
}
73
]
74
}
75
}
76
}
Copied!
1
type Asset {
2
address: String
3
symbol: String
4
decimals: Int
5
price: Float
6
}
7
8
9
type Transaction {
10
id: String
11
timestamp: String
12
}
13
14
type MplRewards {
15
id: String
16
periodFinish: String
17
reward: String
18
rewardRate: String
19
rewardsDuration: String
20
paused: Boolean
21
}
22
23
type PoolDelegate {
24
_id: String
25
owner: String
26
name: String
27
website: String
28
telegram: String
29
twitter: String
30
linkedIn: String
31
companyName: String
32
aboutBusiness: String
33
allowList: Boolean
34
createdAt: String
35
updatedAt: String
36
}
37
38
type PoolPosition {
39
id: String
40
poolTokenBalance: String
41
poolTokensStaked: String
42
rewardPaid: String
43
custodyAllowance: String
44
depositDate: String
45
withdrawCooldown: String
46
stake: String
47
stakeLockerTokensStaked: String
48
stakeRewardPaid: String
49
stakeCustodyAllowance: String
50
stakeDate: String
51
unstakeCooldown: String
52
}
53
54
type Pool {
55
_id: String
56
poolDelegate: PoolDelegate
57
poolName: String
58
contractAddress: String
59
strategy: String
60
createdAt: String
61
updatedAt: String
62
state: String
63
liquidityAsset: Asset
64
liquidityLocker: String
65
stakeLocker: String
66
liquidityCap: String
67
stakeAsset: Asset
68
stakingFee: String
69
delegateFee: String
70
ongoingFee: String
71
name: String
72
numActiveLoans: String
73
allowedLPs: [String]
74
allowedSLs: [String]
75
lpApy: String
76
farmingApy: String
77
stakingApy: String
78
stakeRewardsApy: String
79
balance: String
80
liquidity: String
81
lockupPeriod: String
82
stake: String
83
currentLoaned: String
84
totalInterestEarned: String
85
totalFees: String
86
stakeLockerFees: String
87
poolDelegateFees: String
88
myInterestEarned: String
89
myLiquidity: String
90
myBalance: String
91
transactionHash: String
92
defaultsTotal: String
93
liquidityAssetRecoveredTotal: String
94
poolTokenTotalSupply: String
95
totalLoaned: String
96
totalPrincipalRepaid: String
97
symbol: String
98
poolPositions: [PoolPosition]
99
transaction: Transaction
100
mplRewards: MplRewards
101
totalPoolTokensStaked: String
102
stakeRewards: MplRewards
103
totalStakeLockerTokensStaked: String
104
stakeLockerLiquidity: String
105
stakeLockupPeriod: String
106
openToPublic: Boolean
107
stakeLockerOpenToPublic: Boolean
108
}
Copied!

Pool Loans

Request
Response
Entities
1
query AllPoolWithdrawnLoans {
2
allPoolWithdrawnLoans(
3
filter: { skip: 0, limit: 10 }
4
poolId: "0x6f6c8013f639979c84b756c7fc1500eb5af18dc4"
5
) {
6
list {
7
apr
8
collateralRatio
9
drawdownDate
10
requestAmount
11
state
12
termDays
13
treasuryFees
14
borrower {
15
companyName
16
}
17
collateralAsset {
18
symbol
19
decimals
20
}
21
liquidityAsset {
22
symbol
23
decimals
24
}
25
}
26
skip
27
limit
28
total
29
}
30
}
31
Copied!
1
{
2
"data": {
3
"poolLoans": {
4
"list": [
5
{
6
"apr": "1100",
7
"collateralRatio": "0",
8
"drawdownDate": "1626334913",
9
"requestAmount": "2000000000000",
10
"state": "Active",
11
"termDays": 90,
12
"borrower": {
13
"companyName": "Orthogonal Trading"
14
},
15
"collateralAsset": {
16
"symbol": "WBTC",
17
"decimals": 8
18
},
19
"liquidityAsset": {
20
"symbol": "USDC",
21
"decimals": 6
22
}
23
},
24
{
25
"apr": "900",
26
"collateralRatio": "0",
27
"drawdownDate": "1626329218",
28
"requestAmount": "4000000000000",
29
"state": "Active",
30
"termDays": 90,
31
"borrower": {
32
"companyName": "Folkvang"
33
},
34
"collateralAsset": {
35
"symbol": "WBTC",
36
"decimals": 8
37
},
38
"liquidityAsset": {
39
"symbol": "USDC",
40
"decimals": 6
41
}
42
},
43
{
44
"apr": "900",
45
"collateralRatio": "0",
46
"drawdownDate": "1626597309",
47
"requestAmount": "4000000000000",
48
"state": "Active",
49
"termDays": 180,
50
"borrower": {
51
"companyName": "Symbolic Capital"
52
},
53
"collateralAsset": {
54
"symbol": "WBTC",
55
"decimals": 8
56
},
57
"liquidityAsset": {
58
"symbol": "USDC",
59
"decimals": 6
60
}
61
},
62
{
63
"apr": "900",
64
"collateralRatio": "0",
65
"drawdownDate": "1627973247",
66
"requestAmount": "5000000000000",
67
"state": "Active",
68
"termDays": 90,
69
"borrower": {
70
"companyName": "Parallel Capital"
71
},
72
"collateralAsset": {
73
"symbol": "USDC",
74
"decimals": 6
75
},
76
"liquidityAsset": {
77
"symbol": "USDC",
78
"decimals": 6
79
}
80
},
81
{
82
"apr": "1150",
83
"collateralRatio": "0",
84
"drawdownDate": "1626351548",
85
"requestAmount": "1500000000000",
86
"state": "Active",
87
"termDays": 90,
88
"borrower": {
89
"companyName": "Apollo Capital"
90
},
91
"collateralAsset": {
92
"symbol": "WBTC",
93
"decimals": 8
94
},
95
"liquidityAsset": {
96
"symbol": "USDC",
97
"decimals": 6
98
}
99
},
100
{
101
"apr": "950",
102
"collateralRatio": "0",
103
"drawdownDate": "1628418617",
104
"requestAmount": "2500000000000",
105
"state": "Active",
106
"termDays": 90,
107
"borrower": {
108
"companyName": "OVEX"
109
},
110
"collateralAsset": {
111
"symbol": "USDC",
112
"decimals": 6
113
},
114
"liquidityAsset": {
115
"symbol": "USDC",
116
"decimals": 6
117
}
118
},
119
{
120
"apr": "900",
121
"collateralRatio": "0",
122
"drawdownDate": "1627664506",
123
"requestAmount": "5000000000000",
124
"state": "Active",
125
"termDays": 180,
126
"borrower": {
127
"companyName": "Framework Labs"
128
},
129
"collateralAsset": {
130
"symbol": "USDC",
131
"decimals": 6
132
},
133
"liquidityAsset": {
134
"symbol": "USDC",
135
"decimals": 6
136
}
137
},
138
{
139
"apr": "2200",
140
"collateralRatio": "0",
141
"drawdownDate": "1626687544",
142
"requestAmount": "250000000000",
143
"state": "Active",
144
"termDays": 90,
145
"borrower": {
146
"companyName": "Gattaca"
147
},
148
"collateralAsset": {
149
"symbol": "WBTC",
150
"decimals": 8
151
},
152
"liquidityAsset": {
153
"symbol": "USDC",
154
"decimals": 6
155
}
156
}
157
],
158
"skip": 0,
159
"limit": 10,
160
"total": 8
161
}
162
}
163
}
Copied!
1
type Asset {
2
address: String
3
symbol: String
4
decimals: Int
5
price: Float
6
}
7
8
type BorrowerPublic {
9
companyName: String
10
}
11
12
type LoanPublic {
13
apr: String
14
collateralRatio: String
15
requestAmount: String
16
drawdownDate: String
17
state: String
18
termDays: Int
19
borrower: BorrowerPublic
20
collateralAsset: Asset
21
liquidityAsset: Asset
22
}
Copied!

Pool by ID

Request
Response
Entities
1
query PoolByID {
2
pool(_id: "60e3e70cd993f30012ceae40") {
3
_id
4
poolDelegate {
5
name
6
twitter
7
companyName
8
}
9
stakingFee
10
delegateFee
11
ongoingFee
12
name
13
numActiveLoans
14
lpApy
15
stakingApy
16
balance
17
liquidity
18
stake
19
currentLoaned
20
strategy
21
poolName
22
contractAddress
23
stakeAsset {
24
address
25
symbol
26
}
27
liquidityCap
28
liquidityAsset {
29
address
30
symbol
31
}
32
createdAt
33
}
34
}
Copied!
1
{
2
"data": {
3
"pool": {
4
"_id": "60e3e70cd993f30012ceae40",
5
"poolDelegate": {
6
"name": "Balder Bomans",
7
"twitter": "@maven11capital",
8
"companyName": "Maven 11 Capital"
9
},
10
"stakingFee": "1000",
11
"delegateFee": "1000",
12
"ongoingFee": "2000",
13
"name": "Maple Pool Token",
14
"numActiveLoans": "8",
15
"lpApy": "950",
16
"stakingApy": "0",
17
"balance": "36297887567008",
18
"liquidity": "12047887567008",
19
"stake": "196336740867262850291",
20
"currentLoaned": "24250000000000",
21
"strategy": "The strategy of this pool will be to target borrowers with capital intensive businesses supported by a strong balance sheet. The Pool Delegate will methodically build the credit history of the borrowers by starting with smaller loans. These will grow in size as PD becomes more comfortable with the counter parties. Creditworthiness is assessed based on balance sheet, recent profitability, leverage, liquidity risk, internal (risk) control systems, strength and track record of the team, among other things. The pool is USDC denominated. Collateralization ratios can vary between 0 - 100%.",
22
"poolName": "Maven 11 - USDC 01",
23
"contractAddress": "0x6f6c8013f639979c84b756c7fc1500eb5af18dc4",
24
"stakeAsset": {
25
"address": "0xc1b10e536cd611acff7a7c32a9e29ce6a02ef6ef",
26
"symbol": "BPT"
27
},
28
"liquidityCap": "41500000000000",
29
"liquidityAsset": {
30
"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
31
"symbol": "USDC"
32
},
33
"createdAt": "2021-07-06T05:15:56.092Z"
34
}
35
}
36
}
Copied!
1
type Asset {
2
address: String
3
symbol: String
4
decimals: Int
5
price: Float
6
}
7
8
9
type Transaction {
10
id: String
11
timestamp: String
12
}
13
14
type MplRewards {
15
id: String
16
periodFinish: String
17
reward: String
18
rewardRate: String
19
rewardsDuration: String
20
paused: Boolean
21
}
22
23
type PoolDelegate {
24
_id: String
25
owner: String
26
name: String
27
website: String
28
telegram: String
29
twitter: String
30
linkedIn: String
31
companyName: String
32
aboutBusiness: String
33
allowList: Boolean
34
createdAt: String
35
updatedAt: String
36
}
37
38
type PoolPosition {
39
id: String
40
poolTokenBalance: String
41
poolTokensStaked: String
42
rewardPaid: String
43
custodyAllowance: String
44
depositDate: String
45
withdrawCooldown: String
46
stake: String
47
stakeLockerTokensStaked: String
48
stakeRewardPaid: String
49
stakeCustodyAllowance: String
50
stakeDate: String
51
unstakeCooldown: String
52
}
53
54
type Pool {
55
_id: String
56
poolDelegate: PoolDelegate
57
poolName: String
58
contractAddress: String
59
strategy: String
60
createdAt: String
61
updatedAt: String
62
state: String
63
liquidityAsset: Asset
64
liquidityLocker: String
65
stakeLocker: String
66
liquidityCap: String
67
stakeAsset: Asset
68
stakingFee: String
69
delegateFee: String
70
ongoingFee: String
71
name: String
72
numActiveLoans: String
73
allowedLPs: [String]
74
allowedSLs: [String]
75
lpApy: String
76
farmingApy: String
77
stakingApy: String
78
stakeRewardsApy: String
79
balance: String
80
liquidity: String
81
lockupPeriod: String
82
stake: String
83
currentLoaned: String
84
totalInterestEarned: String
85
totalFees: String
86
stakeLockerFees: String
87
poolDelegateFees: String
88
myInterestEarned: String
89
myLiquidity: String
90
myBalance: String
91
transactionHash: String
92
defaultsTotal: String
93
liquidityAssetRecoveredTotal: String
94
poolTokenTotalSupply: String
95
totalLoaned: String
96
totalPrincipalRepaid: String
97
symbol: String
98
poolPositions: [PoolPosition]
99
transaction: Transaction
100
mplRewards: MplRewards
101
totalPoolTokensStaked: String
102
stakeRewards: MplRewards
103
totalStakeLockerTokensStaked: String
104
stakeLockerLiquidity: String
105
stakeLockupPeriod: String
106
openToPublic: Boolean
107
stakeLockerOpenToPublic: Boolean
108
}
Copied!
Last modified 2mo ago