API - PUBLIC
Nossos dados são públicos
Exchange Data

Endpoints:

https://atvosdigitais.com.br/api/volume

https://atvosdigitais.com.br/api/markets

https://atvosdigitais.com.br/api/trades/BRL_BTC

https://atvosdigitais.com.br/api/ticker/BRL_BTC

https://atvosdigitais.com.br/api/orderbook/BRL_BTC

API - PRIVATE
Nossos dados são públicos
Authentication
Endpoint:
https://atvosdigitais.com.br/api/oauth/token
Example:
Request
curl --location --request POST 'https://atvosdigitais.com.br/api/oauth/token' \
--data-raw '{
"grant_type":"client_credentials",
"api_key":"API_KEY",
"api_secret":"API_SECRET"
}'

Result
{
"success": true,
"token_type": "Bearer",
"access_token": "fs5d64f6s4d5f456fd4s65f4d6fd4sfd4s45fsf5sf65sd4f6s5d4f6fds6dsf466sfd",
"refresh_token": "65fg4s6f4d5fds4f64s6f5d4d6s54f6s4f64sdf64sffsd65f4d6s5f465s",
"message": "Success"
}

Refresh token
Endpoint:
https://atvosdigitais.com.br/api/oauth/token
Example:
Request
curl --location --request POST 'https://atvosdigitais.com.br/api/oauth/token' \
--header 'Authorization: Bearer fs5d64f6s4d5f456fd4s65f4d6fd4sfd4s45fsf5s6dsf466sfd' \
--header 'Content-Type: text/plain' \
--data-raw '{
"grant_type":"refresh_token",
"refresh_token":"65fg4s6f4d5fds4f64s6f5d4d6s54f6s4f64sdf64sffsd65f4d6s5f465s"
}'

Result
{ "success": true,
"token_type": "Bearer",
"access_token": "fsd56f456sd4f5sdf456sd4f56sd4f56df45ds4f65sf45f56sdf45ds4f44fdss",
"refresh_token": "fs56d4f65sf4f6s54f65sd456f4dd4s6fs465df46f65sd56dfs",
"message": "Success"
}

Check session
Endpoint:
https://atvosdigitais.com.br/api/checksession
Example:
Request
curl --location --request GET 'https://atvosdigitais.com.br/api/checksession' \
--header 'Authorization: Bearer fsd56f456sd4f5sdf456sd4f56sd4f56df45ds4f65sf45f56sdf45ds4f44fdss'

Result
{
"success": true,
"message": "Success"
}

Buy and Sell
Endpoint:
https://atvosdigitais.com.br/api/buy
https://atvosdigitais.com.br/api/sell
Example:
Request
curl --location --request POST 'https://atvosdigitais.com.br/api/buy' \
--header 'Authorization: Bearer fsd56f456sd4f5sdf456sd4f56sd4f56df45ds4f65sf45f56sdf45ds4f44fdss' \
--header 'Content-Type: text/plain' \
--data-raw '{
"symbol":"BTC-USDT",
"quantity":10.1234,
"price":0.0001,
"type":"LIMIT"
}'

Result
{
"success": true,
"id": "32",
"message": "Ordem criada com sucesso"
}

Cancel order
Endpoint:
https://atvosdigitais.com.br/api/cancel/[order_id]
Example:
Request
curl --location --request DELETE 'https://atvosdigitais.com.br/api/cancel/29' \
--header 'Authorization: Bearer fsd56f456sd4f5sdf456sd4f56sd4f56df45ds4f65sf45f56sdf45ds4f44fdss'


Result
{
"success": true,
"message": "Sucesso"
}

Order list
Endpoint:
https://atvosdigitais.com.br/api/orders/[pair]
Example:
Request
curl --location --request GET 'https://atvosdigitais.com.br/api/orders/BTC-USDT' \
--header 'Authorization: Bearer fsd56f456sd4f5sdf456sd4f56sd4f56df45ds4f65sf45f56sdf45ds4f44fdss'


Result
{
"success": true,
"result": [
{
"id": "32",
"quantity": "10.12340000",
"quantity_executed": "0.00000000",
"price": "0.00010000",
"subtotal": "0.00101234",
"fee": "0.00000000",
"total": "0.00101234",
"type": "BUY",
"status": "OPEN"
},
{
"id": "7",
"quantity": "1.00000000",
"quantity_executed": "1.00000000",
"price": "1.00000000",
"subtotal": "1.00000000",
"fee": "0.00200000",
"total": "1.00200000",
"type": "BUY",
"status": "CONCLUDED"
},
{
"id": "1",
"quantity": "100.00000000",
"quantity_executed": "0.00000000",
"price": "0.00000010",
"subtotal": "0.00001000",
"fee": "0.00000002",
"total": "0.00001002",
"type": "BUY",
"status": "CANCELED"
}
],
"message": "Success"
}


Somos mais que uma simples exchange.

SERVIÇOS


Câmbio
Exchange