Browse Source

Merge pull request #183 from comit-network/request-order-fix

Fix the API breakage on posting a CfdOrderRequest
upload-correct-windows-binary
Mariusz 3 years ago
committed by GitHub
parent
commit
c11cb6f51b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      frontend/src/TakerApp.tsx

2
frontend/src/TakerApp.tsx

@ -41,7 +41,7 @@ interface MarginResponse {
}
async function postCfdOrderRequest(payload: CfdOrderRequestPayload) {
let res = await fetch(`/api/cfd`, { method: "POST", body: JSON.stringify(payload) });
let res = await fetch(`/api/cfd/order`, { method: "POST", body: JSON.stringify(payload) });
if (!res.status.toString().startsWith("2")) {
throw new Error("failed to create new CFD order request: " + res.status + ", " + res.statusText);

Loading…
Cancel
Save