Skip to content

ksysoev/deriv-api-bff-example

Repository files navigation

Deriv API BFF Example

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.

Getting Started

Start the Service Locally

To start the service locally using Docker Compose, run the following command:

docker compose up

Update Configuration

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

Example API Call

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"
  }
}

About

Example of usage for Deriv API BFF service

Topics

Resources

License

Stars

Watchers

Forks