Sky
Buy USDS
Aave V3
Aerodrome Slipstream
Morpho
Uniswap V3
Universal
Transaction Batching
Sky
Buy USDS
Buy USDS with DAI or USDC on a 1:1 basis.
There are no fees.
POST
/
v0
/
sky
/
buy
from compass_api_sdk import CompassAPISDK, models
with CompassAPISDK(
api_key_auth="<YOUR_API_KEY_HERE>",
) as cas_client:
res = cas_client.sky.buy(token_in=models.TokenIn.USDC, amount=1.5, sender="0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
# Handle response
print(res)
{
"chainId": 123,
"data": "<string>",
"from": "<string>",
"gas": 123,
"to": "<string>",
"value": 123,
"nonce": 123,
"maxFeePerGas": 123,
"maxPriorityFeePerGas": 123
}
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
Was this page helpful?
from compass_api_sdk import CompassAPISDK, models
with CompassAPISDK(
api_key_auth="<YOUR_API_KEY_HERE>",
) as cas_client:
res = cas_client.sky.buy(token_in=models.TokenIn.USDC, amount=1.5, sender="0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
# Handle response
print(res)
{
"chainId": 123,
"data": "<string>",
"from": "<string>",
"gas": 123,
"to": "<string>",
"value": 123,
"nonce": 123,
"maxFeePerGas": 123,
"maxPriorityFeePerGas": 123
}