Initial rebuild of position size calculator #37

Merged
BlakeRain merged 12 commits from trading-tools into main 2023-09-25 16:48:37 +00:00
Showing only changes of commit e622f47db9 - Show all commits

View File

@ -17,6 +17,8 @@ use crate::{
number::{format_number, Number},
toggle::Toggle,
},
seo::WebPageSeo,
title::Title,
},
model::{
currency::{get_exchange_rates, Currency},
@ -28,6 +30,7 @@ use crate::{
},
},
},
pages::Route,
};
type AccountHandle = UseReducerHandle<Account>;
@ -1341,6 +1344,14 @@ fn position_provider(props: &PositionProviderProps) -> Html {
#[function_component(Page)]
pub fn page() -> Html {
html! {
<>
<Title title={"Position Size Calculator"} />
<WebPageSeo
route={Route::PositionSize}
title={"Position Size Calculator"}
excerpt={Some("A tool to help you calculate the size of a position given account risk limits")}
index={true}
follow={true} />
<AccountProvider>
<PositionProvider>
<ClientOnly>
@ -1359,5 +1370,6 @@ pub fn page() -> Html {
</ClientOnly>
</PositionProvider>
</AccountProvider>
</>
}
}