Authentication
Authenticate Per-Connection
{
"op": "auth",
"data": {
"key": `[Insert API key]`,
"secret": `[Insert API secret]`
}
}// Code Example
import os
import json
import asyncio
import websockets
async def main():
connection = await websockets.connect("wss://ws-testnet.aevo.xyz")
auth_msg = json.dumps({
"op": "auth",
"data": {
"key": os.environ["API_KEY"],
"secret": os.environ["API_SECRET"],
}
})
await connection.send(auth_msg)
await connection.recv() # receive the outcome of authentication here
msg = json.dumps({"op": "status"})
await connection.send(msg)
print(await connection.recv())
asyncio.run(main())Authenticate Per-Message
Authenticate One-Off Message
Last updated