Liquidity
Provide and withdraw liquidity from perpetual trading pools
Provides liquidity to a perpetual trading pool for a specific asset. Minimum amounts apply based on asset type.
Body
Responses
200
Successfully created provide liquidity transaction
application/json
400
Invalid request or minimum amount not met
application/json
405
Method not allowed
application/json
500
Server error
application/json
post
POST /api/perpetuals/provideLiquidity HTTP/1.1
Host: app.strikefinance.org
Content-Type: application/json
Accept: */*
Content-Length: 88
{
"request": {
"address": "text",
"asset": {
"policyId": "text",
"assetName": "text"
},
"amount": 1
}
}
{
"cbor": "text"
}
Withdraws liquidity from a perpetual trading pool for a specific asset.
Body
Responses
200
Successfully created withdraw liquidity transaction
application/json
405
Method not allowed
application/json
500
Server error
application/json
post
POST /api/perpetuals/withdrawLiquidity HTTP/1.1
Host: app.strikefinance.org
Content-Type: application/json
Accept: */*
Content-Length: 88
{
"request": {
"address": "text",
"asset": {
"policyId": "text",
"assetName": "text"
},
"amount": 1
}
}
{
"cbor": "text"
}