ariessa-deriv / syntrade-backend Goto Github PK
View Code? Open in Web Editor NEWSyntrade backend is a GraphQL server built on top of Express.
Syntrade backend is a GraphQL server built on top of Express.
Describe the bug
When query for user(user_id: 1), it responded with details for user(user_id: 4)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Details for user(user_id: 1) should be returned
Desktop (please complete the following information):
Describe the bug
The back-end server returns "Failed to get all users"
To Reproduce
Steps to reproduce the behavior:
{ users { user_id email password wallet_balance date_joined } }
Expected behavior
The response should return all user details
Desktop (please complete the following information):
Describe the bug
When query for trade(trade_id: 1), it responded with details for trade(trade_id: 3)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Details for trade(trade_id: 1) should be returned
Desktop (please complete the following information):
Describe the bug
When querying for user_id: 1, the respond got is from user_id: 3 instead. Noticed that the respond gives the last data from user data every single time.
To Reproduce
Steps to reproduce the behavior:
{ user(user_id: 1) { user_id email password wallet_balance date_joined } }
Expected behavior
It should return the specific user_id details
Desktop (please complete the following information):
Describe the bug
It shows an error code in the response body indicating that the trade buying is unsuccessful
To Reproduce
Steps to reproduce the behavior:
mutation {
createTrade(syntheticType: "volatility_10_rise", wagerAmount: 198, optionType: "put", ticks: 4)
}
Expected behavior
It should not show an error message
Desktop (please complete the following information):
Describe the bug
The login endpoint cannot read user details
To Reproduce
Steps to reproduce the behavior:
mutation { login(email: "[email protected]", password: "Abcd123!") { email password } }
3. See the error
Expected behavior
The endpoint should be able to read the user details
Desktop (please complete the following information):
Tool
Describe the bug
The current data type for current_wallet_balance is string
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The data type for current_wallet_balance should be float
Desktop (please complete the following information):
Describe the bug
Does not return all details from trade (give null instead)
To Reproduce
Steps to reproduce the behavior:
{ trade(trade_id: 1) { trade_id user_id synthetic_type currency trade_time trade_type trade_result current_wallet_balance } }
Expected behavior
Return all details from trade
Desktop (please complete the following information):
Describe the bug
The information returned are null
To Reproduce
Steps to reproduce the behavior:
mutation { login(email: "[email protected]", password: "Abc4123!") { email, password } }
Expected behavior
Back-end server should return JWT token
Desktop (please complete the following information):
Describe the bug
It shows an error code in the response body indicating that the trade buying is unsuccessful
To Reproduce
Steps to reproduce the behavior:
mutation {
createTrade(syntheticType: "volatility_25_matches", wagerAmount: 198, optionType: "call", ticks: 7, lastDigitPrediction: 2)
}
Expected behavior
It should not show an error message
Desktop (please complete the following information):
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.