Initial rebuild of position size calculator #37
@ -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>
|
||||
</>
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user