This repository provides an example configuration for the Deriv API Backend for Frontend (BFF) service. It offers a simple way to start working with this service, including setup instructions and configuration management.
To start the service locally using Docker Compose, run the following command:
docker compose up
If you need to update the API configuration, you can upload the new configuration without restarting the service. Use the following command:
docker compose run upload-api-config
You can test the API using a WebSocket client. Here is an example of how to call the API:
wsget 'ws://localhost:8080?app_id=1089&l=en'
Use Enter to input the request and send it, and Ctrl+C to exit.
Example request:
{
"method": "aggregate",
"params": {
"country": "ru"
}
}