Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Latest commit

 

History

History
36 lines (24 loc) · 854 Bytes

readme.md

File metadata and controls

36 lines (24 loc) · 854 Bytes

DerivWS Mock Server

Connecting to the Mock Server

Each JSON request sent to the mock server must contain a session_id which help identify which session that the client is currently on.

{
    "session_id": 1
}

Each session in the mock server has the following scoped to the id:

  • WebSocket connection to DerivWS
  • DerivWS Authorization
  • Account bound-data



Pushing Mock Data

To push your custom data to the mock server, you will need to add the generate_mock property to the call.

{
    "generate_mock": "1",
    "action": "create" // create | update | delete | read
}

Adding this will allow the mock server to accept mock data directly through this call without heavy validation. Of course, schema level validation is still in place. This allows

List of generator endpoints:

  • Accounts