Skip to content

Instantly share code, notes, and snippets.

View johnayoung's full-sized avatar

John Young johnayoung

View GitHub Profile
@johnayoung
johnayoung / cross_momentum_with_trend_overlay_v1.py
Created May 11, 2024 20:02
cross-sectional-momentum-files
import random
import time
from decimal import Decimal
from typing import Dict, List, Set, Tuple
import numpy as np
from pydantic import Field
from controllers.directional_trading.ema_crossover_v1 import EMACrossoverController, EMACrossoverControllerConfig
from hummingbot.client.config.config_data_types import ClientFieldData
{
"dataSource": {
"type": "api",
"config": {
"url": "<bloxy url>"
}
},
"exportTo": {
"type": "google sheet",
"params": {
@johnayoung
johnayoung / Working with dates.EXCEL.yaml
Created December 20, 2019 14:36
Shows how to work with dates by using the Moment JavaScript library with the Moment-MSDate plug-in.
name: Working with dates
description: >-
Shows how to work with dates by using the Moment JavaScript library with the
Moment-MSDate plug-in.
host: EXCEL
api_set: {}
script:
content: >
declare var moment: any;

Get All

db.restaurants.find()

Limit and Sort

db.restaurants.find().sort({name: 1}).limit(10)

Get by id

'use strict';
const express = require('express');
// you'll need to use `queryString` in your `gateKeeper` middleware function
const queryString = require('query-string');
const app = express();
// For this challenge, we're hard coding a list of users, because