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

binary-com/deriv-mockserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published