update retail volume page

This commit is contained in:
MuslemRahimi 2024-08-01 12:15:22 +02:00
parent 7c83325f51
commit 9860f97019
2 changed files with 4 additions and 3 deletions

View File

@ -22,6 +22,8 @@ const checkMarketHour = async () => {
export const load = async ({parent}) => {
checkMarketHour()
const {apiKey, apiURL, user} = await parent();
const getDarkPoolFlow = async () => {
let output;
@ -30,7 +32,6 @@ export const load = async ({parent}) => {
output = cachedData;
} else {
const {apiKey, apiURL} = await parent();
const response = await fetch(apiURL + '/dark-pool-flow', {
method: 'GET',
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;
};

View File

@ -175,7 +175,7 @@
<tbody>
{#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">
{index+1}
</td>