update retail volume page
This commit is contained in:
parent
7c83325f51
commit
9860f97019
@ -22,6 +22,8 @@ const checkMarketHour = async () => {
|
|||||||
export const load = async ({parent}) => {
|
export const load = async ({parent}) => {
|
||||||
|
|
||||||
checkMarketHour()
|
checkMarketHour()
|
||||||
|
const {apiKey, apiURL, user} = await parent();
|
||||||
|
|
||||||
const getDarkPoolFlow = async () => {
|
const getDarkPoolFlow = async () => {
|
||||||
let output;
|
let output;
|
||||||
|
|
||||||
@ -30,7 +32,6 @@ export const load = async ({parent}) => {
|
|||||||
output = cachedData;
|
output = cachedData;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
const {apiKey, apiURL} = await parent();
|
|
||||||
const response = await fetch(apiURL + '/dark-pool-flow', {
|
const response = await fetch(apiURL + '/dark-pool-flow', {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
@ -44,7 +45,7 @@ export const load = async ({parent}) => {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
output = data?.user?.tier !== 'Pro' ? output?.slice(0,6) : output;
|
output = user?.tier !== 'Pro' ? output?.slice(0,6) : output;
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -175,7 +175,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
{#each stockList as item, index}
|
{#each stockList as item, index}
|
||||||
|
|
||||||
<tr on:click={() => goto(`/stocks/${item?.symbol}`)} class="sm:hover:bg-[#245073] sm:hover:bg-opacity-[0.2] odd:bg-[#27272A] {index+1 === stockList?.length && data?.user?.tier !== 'Pro' ? 'opacity-[0.1]' : ''} cursor-pointer">
|
<tr on:click={() => goto(`/${item?.assetType}/${item?.symbol}`)} class="sm:hover:bg-[#245073] sm:hover:bg-opacity-[0.2] odd:bg-[#27272A] {index+1 === stockList?.length && data?.user?.tier !== 'Pro' ? 'opacity-[0.1]' : ''} cursor-pointer">
|
||||||
<td class="text-white text-sm font-medium text-white text-end">
|
<td class="text-white text-sm font-medium text-white text-end">
|
||||||
{index+1}
|
{index+1}
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user