\YearnAPI
All URIs are relative to https://beta.usemoon.ai
AddLiquidity
Post /yearn/{name}/add-liquidity
AddLiquidityWeth
Post /yearn/{name}/add-liquidity-weth
RemoveLiquidity
Post /yearn/{name}/remove-liquidity
RemoveLiquidityWeth
Post /yearn/{name}/remove-liquidity-weth
AddLiquidity
TransactionAPIResponse AddLiquidity(ctx, name).Authorization(authorization).InputBody(inputBody).Execute()
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
name
string
Other Parameters
Other parameters are passed through a pointer to a apiAddLiquidityRequest struct via the builder pattern
authorization
string
inputBody | InputBody | |
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddLiquidityWeth
TransactionAPIResponse AddLiquidityWeth(ctx, name).Authorization(authorization).InputBody(inputBody).Execute()
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
name
string
Other Parameters
Other parameters are passed through a pointer to a apiAddLiquidityWethRequest struct via the builder pattern
authorization
string
inputBody | InputBody | |
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RemoveLiquidity
TransactionAPIResponse RemoveLiquidity(ctx, name).Authorization(authorization).InputBody(inputBody).Execute()
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
name
string
Other Parameters
Other parameters are passed through a pointer to a apiRemoveLiquidityRequest struct via the builder pattern
authorization
string
inputBody | InputBody | |
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RemoveLiquidityWeth
TransactionAPIResponse RemoveLiquidityWeth(ctx, name).Authorization(authorization).InputBody(inputBody).Execute()
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
name
string
Other Parameters
Other parameters are passed through a pointer to a apiRemoveLiquidityWethRequest struct via the builder pattern
authorization
string
inputBody | InputBody | |
Return type
TransactionAPIResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]