Skip to content

Instantly share code, notes, and snippets.

@myskydog
myskydog / hedgedog-simple-functions.ts
Created September 22, 2025 07:02
HedgeDog Options API - Simplified Custom Functions (No TypeScript)
/**
* HedgeDog Options API - Simplified Custom Functions
* @author HedgeDog Excel Lab
* @version 1.0.0
*/
/**
* Simple test function
* @customfunction
* @param input Test input
@myskydog
myskydog / hedgedog-custom-functions.ts
Created September 22, 2025 06:53
HedgeDog Options API - Excel Custom Functions (Fixed with Debug)
/**
* HedgeDog Options API - Custom Functions for Excel
* @author HedgeDog Excel Lab
* @version 1.0.0
*/
/**
* Simple test function to verify custom function registration
* @customfunction
* @param input Test input value
@myskydog
myskydog / hedgedog-custom-functions.ts
Created September 22, 2025 06:44
HedgeDog Options API - Excel Custom Functions
/**
* HedgeDog Options API - Custom Functions for Excel
* @author HedgeDog Excel Lab
* @version 1.0.0
*/
/**
* Fetches options chain data from HedgeDog API
* @customfunction
* @param {string} symbol Stock symbol (e.g., "AAPL")
@myskydog
myskydog / hedgedog-options-script.ts
Last active September 22, 2025 06:37
HedgeDog Options API - Excel Script Lab TypeScript
/**
* HedgeDog Options API - Excel Script Lab
* Fetch options chain data from HedgeDog API
*
* API: http://localhost:8000/api/options/chain/{symbol}
* Parameters: strikes_around, strike_min, strike_max, expiry_start, expiry_end
*/
function main(workbook: ExcelScript.Workbook) {
// Configuration - modify these values
@myskydog
myskydog / hedgedog-options-lab.yaml
Created September 22, 2025 06:33
HedgeDog Options API - Excel Script Lab Configuration
name: HedgeDog Options API
description: Fetch options chain data from HedgeDog API with comprehensive filtering
author: HedgeDog Excel Lab
version: 2.0.0
functions:
- name: FETCH_OPTIONS_CHAIN
description: Fetches options chain data with full parameter support
parameters:
- name: symbol
@myskydog
myskydog / BatchTest.EXCEL.yaml
Created October 19, 2023 15:36
Calculates the volume of a sphere.
name: BatchTest
description: Calculates the volume of a sphere.
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
function transpose(matrix) {
return matrix[0].map((col, i) => matrix.map(row => row[i]));
}
@myskydog
myskydog / GenOrders.EXCEL.yaml
Created August 2, 2023 00:33
Generate orders from monitor panel
name: GenOrders
description: Generate orders from monitor panel
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
OfficeExtension.config.extendedErrorLogging = true;
async function run() {
await Excel.run(async (context) => {
@myskydog
myskydog / Scenario Analyse.EXCEL.yaml
Created June 25, 2023 13:22
Create a new snippet from a blank template.
name: Scenario Analyse
description: Create a new snippet from a blank template.
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
async function test() {
await Excel.run(async (context) => {
@myskydog
myskydog / Trading Tools.EXCEL.yaml
Created June 14, 2023 11:48
Pair trading tools
name: Trading Tools
description: Pair trading tools
host: EXCEL
api_set: {}
script:
content: >
$("#CP-preview").click(() => tryCatch(callPutParityOrderPreview));
$("#FS-preview").click(() => tryCatch(spotFutOrderPreview));
@myskydog
myskydog / SkydogFn.EXCEL.yaml
Last active July 10, 2023 05:51
Skydog Data functions
name: SkydogFn
description: Skydog Data functions
host: EXCEL
api_set: {}
script:
content: >
declare var moment: any;
function apiDispatch(apiName: string) {