This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Retrieves a paginated list of trackers for a specified request, supporting sorting, searching, and pagination. | |
/// Returns a JSON result with paginated data compatible with DataTables. | |
/// See: <see cref="ListedTrackerDto"/>. | |
/// </summary> | |
/// <param name="requestId">ID of the request for which trackers are being retrieved.</param> | |
/// <returns>JSON result containing paginated tracker data, record count, and error information if applicable.</returns> | |
[HttpPost] | |
public virtual ActionResult GetTrackerPaginatedList(int requestId) { | |
var watch = Stopwatch.StartNew(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Logging": { | |
"LogLevel": { | |
"Default": "Information", | |
"Microsoft.AspNetCore": "Warning" | |
} | |
}, | |
"AllowedHosts": "*", | |
"ConnectionStrings": { | |
"RazorPagesMovieContext": "Server=localhost;Database=RazorPagesMovieContext-d67b7425-08c7-4b61-ad49-6d9eda3c0a16;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=True;Encrypt=False" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Retrieves a paginated list of trackers for a given request, supporting sorting, searching, and pagination. | |
/// Returns an object tailored for listing, <see cref="ListedTrackerDto"/>. | |
/// This method may be used with frontend calls compatible with DataTables. | |
/// </summary> | |
/// <param name="requestId">The ID of the specific request for which trackers are being retrieved.</param> | |
/// <returns>A JSON object containing paginated tracker data, total records, and any error messages if an exception occurs.</returns> | |
[HttpPost] | |
public virtual ActionResult GetTrackerPaginatedList(int requestId) | |
{ |
This endpoint works:
https://www.binance.com/api/v3/klines?symbol=BTCUSDT&interval=1h&limit=2
This endpoint will return an error:
https://www.binance.com/api/v3/klines?symbol=BTCUSDT%7CETHUSDT&interval=1h&limit=2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
import { Subject } from 'rxjs'; | |
import { | |
// eslint-disable-next-line @typescript-eslint/no-unused-vars | |
KLINE_CRYPTOS, | |
KLINE_CRYPTOS_BTC, | |
// eslint-disable-next-line @typescript-eslint/no-unused-vars | |
KLINE_CRYPTOS_QUICK, | |
} from '../../../../../data/assets.data'; | |
import { LoggingService } from '../logging/logging.service'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get dependency: `ng add @angular/material` | |
// Save to `src/app/material/material.module.ts` | |
// June 2024 | |
import { NgModule } from '@angular/core'; | |
/* ================================ MATERIAL ================================ */ | |
// Importing Angular Material modules individually | |
// Each import provides a specific UI component from Angular Material |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# I wrote a shell script that takes a project name and then configures an Angular project with a prefix and all my preferences, | |
# which include eslint, prettier, and the Airbnb styles guide for Angular using pnpm (instead of npm). | |
# | |
# Download it to the parent directory where you want to create a new project ( I have them all in a directory called wdd430) | |
# and then make it executable with this command. | |
# | |
# chmod +x create-angular-project.sh | |
# |