-
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
1 parent
74d8112
commit d99ea8e
Showing
25 changed files
with
222 additions
and
193 deletions.
There are no files selected for viewing
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const Info: React.FC = () => { | ||
return ( | ||
<div className="container mx-auto px-6 pt-12 pb-80 md:pb-96"> | ||
<div className="container mx-auto max-w-4xl space-y-6 rounded-lg bg-gray-200 p-10 px-6 text-center dark:bg-darkBlue1 md:px-16"> | ||
<p className="text-md text-justify md:text-lg"> | ||
Please do not hesitate to contact us, if you want to learn more about | ||
simple trading strategies or more complicated statistical arbitrage of | ||
stocks. Regardless of whether you are a novice to trading or a veteran | ||
Quant, all are welcomed to be part of the society. | ||
</p> | ||
<p className="text-md text-justify md:text-lg"> | ||
{" "} | ||
<img | ||
src="./assets/images/icon-email.svg" | ||
alt="" | ||
className="scale-10 mr-2 inline pb-1 invert dark:invert-0" | ||
/> | ||
Email: [email protected] | ||
</p> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Info; |
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
File renamed without changes.
This file was deleted.
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
File renamed without changes.
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
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
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { useNavigate } from "react-router"; | ||
import BarGraph from "./BarChart"; | ||
import {BacktestResponseResult} from "../types"; | ||
|
||
const Details: React.FC<BacktestResponseResult> = ({data}) => { | ||
const navigate = useNavigate(); | ||
|
||
const goBack = () => navigate(-1); | ||
|
||
return ( | ||
<div className="container mx-auto mt-[-5rem] w-full px-6 md:max-w-2xl"> | ||
<div className="flex flex-col justify-between space-y-4 rounded-lg bg-gray-100 p-10 dark:bg-darkBlue3"> | ||
<BarGraph | ||
description="1 Month Result" | ||
value={data.return_monthly_1} | ||
/> | ||
<BarGraph | ||
description="3 Month Result" | ||
value={data.return_monthly_3} | ||
/> | ||
<BarGraph | ||
description="6 Month Result" | ||
value={data.return_monthly_6} | ||
/> | ||
<BarGraph | ||
description="1 Year Result" | ||
value={data.return_yearly_1} | ||
/> | ||
</div> | ||
<button | ||
className="text-md mt-2 w-20 cursor-pointer rounded-xl bg-gray-100 p-3 text-center hover:bg-darkCyan dark:bg-darkBlue3 dark:hover:bg-accentCyan md:text-lg" | ||
onClick={goBack} | ||
> | ||
Back | ||
</button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Details; |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { InView } from "react-intersection-observer"; | ||
import { MarketResponseResult } from "../../@types/api"; | ||
|
||
import Item from "./ResultItem"; | ||
import { useApp } from "../../states/AppState"; | ||
const Scanner: React.FC = () => { | ||
const { getStocks, filteredStocks } = useApp(); | ||
|
||
|
||
return ( | ||
<ul className="mt-8 flex max-h-screen w-full flex-col space-y-8 overflow-y-scroll scrollbar scrollbar-track-gray-300 scrollbar-thumb-darkCyan dark:scrollbar-track-white"> | ||
{filteredStocks?.map((backtest: MarketResponseResult) => ( | ||
<InView | ||
key={backtest.id} | ||
rootMargin="200px 0px" | ||
threshold={0.3} | ||
triggerOnce={true} | ||
> | ||
{({ inView, ref }) => { | ||
return inView ? ( | ||
<Item key={backtest.id} id={backtest.id} /> | ||
) : ( | ||
<div | ||
ref={ref} | ||
className="h-72 w-full rounded-lg bg-gray-100 dark:bg-darkBlue3" | ||
></div> | ||
); | ||
}} | ||
</InView> | ||
))} | ||
</ul> | ||
); | ||
}; | ||
|
||
export default Scanner; |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { useApp } from "../../states/AppState"; | ||
|
||
const Search: React.FC = () => { | ||
const { searchQuery, setSearchQuery } = useApp(); | ||
|
||
return ( | ||
<div className="px-6 md:px-0"> | ||
<div className="container mx-auto max-w-4xl space-y-6 rounded-lg bg-gray-200 p-10 px-6 text-center dark:bg-darkBlue1 md:px-16"> | ||
<h5 className="text-2xl font-bold">Search</h5> | ||
<div className="w-full md:flex-1"> | ||
<input | ||
type="text" | ||
className="w-full rounded-full px-10 py-3 focus:outline-none dark:text-black" | ||
value={searchQuery} | ||
onChange={(e) => setSearchQuery(e.target.value)} | ||
placeholder="Enter Stock Name" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Search; |
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
Oops, something went wrong.