-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Peter Wilson
committed
Apr 5, 2023
1 parent
0db8f34
commit 6134dc3
Showing
22 changed files
with
434 additions
and
434 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// import { DisplaySummary } from "../../../clients/DayTraderClient"; | ||
import { DisplaySummary } from "../../../clients/DayTraderClient"; | ||
|
||
export default async function userSummary(req, res){ | ||
const user = req.body.username; | ||
// const response = await DisplaySummary(user, -1); | ||
const response = { | ||
user_commands: [], | ||
account_transactions: [], | ||
} | ||
const response = await DisplaySummary(user, -1); | ||
// const response = { | ||
// user_commands: [], | ||
// account_transactions: [], | ||
// } | ||
return res.status(200).json(response) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// import { DumpLog } from "../../../clients/DayTraderClient"; | ||
import { DumpLog } from "../../../clients/DayTraderClient"; | ||
|
||
|
||
export default async function dumplog(req, res){ | ||
// const response = await DumpLog("dumplog.xml", -1); | ||
const response = { | ||
xml: "", | ||
success: true, | ||
} | ||
const response = await DumpLog("dumplog.xml", -1); | ||
// const response = { | ||
// xml: "", | ||
// success: true, | ||
// } | ||
return res.status(200).json(response) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// import { DumpLogUser } from "../../../clients/DayTraderClient"; | ||
import { DumpLogUser } from "../../../clients/DayTraderClient"; | ||
|
||
export default async function userLog(req, res){ | ||
const user = req.body.username; | ||
// const response = await DumpLogUser(user, "dumploguser.xml", -1); | ||
const response = { | ||
xml: "", | ||
success: true, | ||
} | ||
const response = await DumpLogUser(user, "dumploguser.xml", -1); | ||
// const response = { | ||
// xml: "", | ||
// success: true, | ||
// } | ||
return res.status(200).json(response) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
// import { CancelBuy } from "../../../../clients/DayTraderClient"; | ||
import { CancelBuy } from "../../../../clients/DayTraderClient"; | ||
|
||
export default async function cancelBuy(req, res){ | ||
const username = req.body.username | ||
// const response = await CancelBuy(username, -1); | ||
const response = { | ||
success: true, | ||
} | ||
const response = await CancelBuy(username, -1); | ||
// const response = { | ||
// success: true, | ||
// } | ||
return res.status(200).json(response) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// import { CommitBuy } from "../../../../clients/DayTraderClient"; | ||
import { CommitBuy } from "../../../../clients/DayTraderClient"; | ||
|
||
|
||
export default async function commitBuy(req, res){ | ||
const username = req.body.username | ||
// const response = await CommitBuy(username, -1); | ||
const response = { | ||
success: true, | ||
} | ||
const response = await CommitBuy(username, -1); | ||
// const response = { | ||
// success: true, | ||
// } | ||
return res.status(200).json(response) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
// import { Buy } from "../../../../clients/DayTraderClient"; | ||
import { Buy } from "../../../../clients/DayTraderClient"; | ||
|
||
export default async function buy(req, res){ | ||
const username = req.body.username | ||
const stock = req.body.stock | ||
const amount = req.body.amount | ||
// const response = await Buy(username, stock, amount, -1); | ||
const response = { | ||
success: true, | ||
} | ||
const response = await Buy(username, stock, amount, -1); | ||
// const response = { | ||
// success: true, | ||
// } | ||
return res.status(200).json(response) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
// import { CancelSetBuy } from "../../../../clients/DayTraderClient"; | ||
import { CancelSetBuy } from "../../../../clients/DayTraderClient"; | ||
|
||
|
||
export default async function cancelSetBuy(req, res){ | ||
const username = req.body.username; | ||
const stock_symbol = req.body.stock; | ||
// const response = await CancelSetBuy(username, stock_symbol, -1); | ||
const response = { | ||
success: true, | ||
} | ||
const response = await CancelSetBuy(username, stock_symbol, -1); | ||
// const response = { | ||
// success: true, | ||
// } | ||
return res.status(200).json(response) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
// import { SetBuyAmount } from "../../../../clients/DayTraderClient"; | ||
import { SetBuyAmount } from "../../../../clients/DayTraderClient"; | ||
|
||
export default async function setBuyAmount(req, res){ | ||
const username = req.body.username; | ||
const stock_symbol = req.body.stock; | ||
const amount = req.body.stock; | ||
// const response = await SetBuyAmount(username, stock_symbol, amount, -1); | ||
const response = { | ||
success: true, | ||
} | ||
const response = await SetBuyAmount(username, stock_symbol, amount, -1); | ||
// const response = { | ||
// success: true, | ||
// } | ||
return res.status(200).json(response) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
// import { SetBuyTrigger } from "../../../../clients/DayTraderClient"; | ||
import { SetBuyTrigger } from "../../../../clients/DayTraderClient"; | ||
|
||
export default async function setBuyTrigger(req, res){ | ||
const username = req.body.username; | ||
const stock_symbol = req.body.stock; | ||
const amount = req.body.amount; | ||
// const response = await SetBuyTrigger(username, stock_symbol, amount, -1); | ||
const response = { | ||
success: true, | ||
} | ||
const response = await SetBuyTrigger(username, stock_symbol, amount, -1); | ||
// const response = { | ||
// success: true, | ||
// } | ||
return res.status(200).json(response) | ||
} |
Oops, something went wrong.