Trading
Execute immediate market order at current market price
Authorizations
Body
tokenstringRequiredExample:
Token symbol or address
6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
chainstring · enumRequiredDefault:
Blockchain network
solana
Example: solana
Possible values: amountnumberRequiredExample:
Order amount
100.5
sidestring · enumRequiredExample:
Trade direction
buy
Possible values: walletstringRequiredExample:
Comma-separated wallet addresses
GkEKe6u4kGERc81RW1qyPeewKAE4ovp4pf8RMW6BrtH6,5itB5JkFPxmSCjAhsddk2fsXgox5fyBcGG28rSrTDpCW
slippagenumber · max: 100RequiredExample:
Slippage tolerance percentage
0.5
antiMevbooleanOptionalExample:
Enable anti-MEV protection
false
priorityFeenumberRequiredExample:
Priority fee in native token
1000
poolAddressstringRequiredExample:
Optional pool address for specific trading
71HuFmuYAFEFUna2x2R4HJjrFNQHGuagW3gUMFToL9tk
requestIdstringOptionalExample:
Optional request identifier for tracking
req-12345
Responses
200
Market order submitted successfully
application/json
400
Bad request - invalid parameters or insufficient balance
application/json
401
Unauthorized - user not authenticated
application/json
500
Internal server error
application/json
post
POST /order/market HTTP/1.1
Host: api.apm-api.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 337
{
"token": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
"chain": "solana",
"amount": 100.5,
"side": "buy",
"wallet": "GkEKe6u4kGERc81RW1qyPeewKAE4ovp4pf8RMW6BrtH6,5itB5JkFPxmSCjAhsddk2fsXgox5fyBcGG28rSrTDpCW",
"slippage": 0.5,
"antiMev": false,
"priorityFee": 1000,
"poolAddress": "71HuFmuYAFEFUna2x2R4HJjrFNQHGuagW3gUMFToL9tk",
"requestId": "req-12345"
}
{
"orderIds": [
"550e8400-e29b-41d4-a716-446655440000",
"550e8400-e29b-41d4-a716-446655440001"
],
"errors": {
"ABC123": "Insufficient balance",
"DEF456": "No token holdings found"
}
}
Last updated