Skip to content

Instantly share code, notes, and snippets.

View adejorosam's full-sized avatar
🏠
Working from home

Samson Adejoro adejorosam

🏠
Working from home
View GitHub Profile
investment account creation
const payload = {
clientId,
branchId,
productId,
mgmtType: 'SELF',
accountUsage: 'LIVE',
accountLabel:
user.user_type === UserType.Individual
? `${user.first_name || ''} ${user.last_name} (securities)`
[
{
"Price": "2.99",
"Date": "10/23/2024 12:00:00 AM"
},
{
"Price": "2.99",
"Date": "10/24/2024 12:00:00 AM"
},
{
This file has been truncated, but you can view the full file.
Top Gainers
[
{
"id": "f7df4971-56d3-4355-a209-253478bf071c",
"tenant": "css",
"createdBy": "daemon",
"createdAt": "2024-10-29T10:59:00.671973669Z",
"marketCode": "NGX",
"marketSegmentId": "",
"secId": "LIVESTOCK",
<!DOCTYPE html>
<?php
use Carbon\Carbon;
use CardinalstoneRestServer\services\mail\Mailer;
?>
<TABLE class=full-width-container style="HEIGHT: 100%; FONT-FAMILY: Calibri(Body); WIDTH: 100%; PADDING-BOTTOM: 30px; PADDING-TOP: 30px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px" height="100%" cellSpacing=0 cellPadding=0 width="100%" bgColor=#eeeeee border=0>
<TBODY>
<TR>
<TD vAlign=top align=center>
<TABLE class=container style="WIDTH: 720px" cellSpacing=0 cellPadding=0 width=720 bgColor=#ffffff border=0>
import { Injectable } from '@nestjs/common';
import * as moment from 'moment-timezone';
isMarketOpen(): boolean {
// Define Lagos market hours
const marketOpen = { start: '10:00', end: '14:30' }; // 10 AM to 2:30 PM
// Get current time in Lagos
const lagosTime = moment().tz('Africa/Lagos');
async computeRollingAverage(
accountId: string,
refDate: string,
): Promise<any> {
const totalPort = [];
const data = [];
let mom = 0;
let momC = 0;
// Loop through the past 7 months
This file has been truncated, but you can view the full file.
<?php
use CardinalstoneRestServer\models\MutualFundModel as mutualFundModel;
use CardinalstoneRestServer\models\ForeignEquityModel as ForeignEquityModel;
use CardinalstoneRestServer\models\CustomerModel as customerModel;
use Carbon\Carbon;
use CardinalstoneRestServer\middleware\Authentication as auth;
use CardinalstoneRestServer\middleware\Authorization;
use CardinalstoneRestServer\middleware\AdminAuthorization;
use CardinalstoneRestServer\middleware\CheckMultifactorAuthentication;
use CardinalstoneRestServer\services\JWTToken;
protected function getFormFields(): array {
return [
'epc-form' => [
'status' => [
"Pending Surveys" => ['value' => "pending", 'color' => $this->getStatusColor()['pending']],
"On Hold" => ['value' => 'on-hold', 'color' => $this->getStatusColor()['on-hold']],
"Payment Completed" => ['value' => 'payment-completed', 'color' => $this->getStatusColor()['payment-completed']],
"Survey Booked" => ['value' => 'survey-booked', 'color' => $this->getStatusColor()['survey-booked']],
'Pending Lodgement' => ['value' => "pending-lodgement", 'color' => $this->getStatusColor()['pending-lodgement']],
"Paid" => ['value' => "paid", 'color' => $this->getStatusColor()['paid']],
protected function getFormFields(): array {
return [
'epc-form' => [
'status' => [
"Pending Surveys" => ['value' => "pending", 'color' => $this->getStatusColor()['pending']],
"On Hold" => ['value' => 'on-hold', 'color' => $this->getStatusColor()['on-hold']],
"Payment Completed" => ['value' => 'payment-completed', 'color' => $this->getStatusColor()['payment-completed']],
"Survey Booked" => ['value' => 'survey-booked', 'color' => $this->getStatusColor()['survey-booked']],
'Pending Lodgement' => ['value' => "pending-lodgement", 'color' => $this->getStatusColor()['pending-lodgement']],
"Paid" => ['value' => "paid", 'color' => $this->getStatusColor()['paid']],
<!DOCTYPE html>
<?php
use Carbon\Carbon;
use CardinalstoneRestServer\services\mail\Mailer;
?>
<TABLE class=full-width-container style="HEIGHT: 100%; FONT-FAMILY: Calibri(Body); WIDTH: 100%; PADDING-BOTTOM: 30px; PADDING-TOP: 30px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px" height="100%" cellSpacing=0 cellPadding=0 width="100%" bgColor=#eeeeee border=0>
<TBODY>
<TR>
<TD vAlign=top align=center>
<TABLE class=container style="WIDTH: 720px" cellSpacing=0 cellPadding=0 width=720 bgColor=#ffffff border=0>