Skip to content

Instantly share code, notes, and snippets.

🚀
Helping people in space

Andrew Rechenberg djflux

🚀
Helping people in space
Block or report user

Report or block djflux

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View cbp-feed-snoop.ts
import * as GTT from 'coinbase-pro-trading-toolkit';
import { CoinbaseProFeed, CoinbaseProFeedConfig } from 'coinbase-pro-trading-toolkit/build/src/exchanges';
import { LiveBookConfig, LiveOrderbook, SkippedMessageEvent, TradeMessage, LevelMessage } from "coinbase-pro-trading-toolkit/build/src/core";
import { Ticker } from "coinbase-pro-trading-toolkit/build/src/exchanges/PublicExchangeAPI";
import { CumulativePriceLevel } from "coinbase-pro-trading-toolkit/build/src/lib";
const logger = GTT.utils.ConsoleLoggerFactory({ level: 'debug' });
const product = 'BTC-USD';
const [base, quote] = product.split('-');
View gdax-feed-snoop.ts
import * as GTT from 'gdax-trading-toolkit';
import { GDAXFeed, GDAXFeedConfig } from 'gdax-trading-toolkit/build/src/exchanges';
import { LiveBookConfig, LiveOrderbook, SkippedMessageEvent, TradeMessage, LevelMessage } from "gdax-trading-toolkit/build/src/core";
import { Ticker } from "gdax-trading-toolkit/build/src/exchanges/PublicExchangeAPI";
import { CumulativePriceLevel } from "gdax-trading-toolkit/build/src/lib";
const logger = GTT.utils.ConsoleLoggerFactory({ level: 'debug' });
const product = 'BTC-USD';
const [base, quote] = product.split('-');
@djflux
djflux / test-trades.ts
Created Apr 17, 2019
Test of various gdax-trading-toolkit modules and libs
View test-trades.ts
import * as GTT from "gdax-trading-toolkit";
import { Big } from "gdax-trading-toolkit/build/src/lib/types";
import { TickerMessage, Trader, TraderConfig } from "gdax-trading-toolkit/build/src/core";
import { LiveOrder } from "gdax-trading-toolkit/build/src/lib";
import { GDAXExchangeAPI } from "gdax-trading-toolkit/build/src/exchanges/gdax/GDAXExchangeAPI";
import { GDAXConfig } from "gdax-trading-toolkit/build/src/exchanges/gdax/GDAXInterfaces";
import { GDAX_WS_FEED, GDAXFeed, GDAXFeedConfig } from "gdax-trading-toolkit/build/src/exchanges";
import { GDAX_API_URL } from "gdax-trading-toolkit/build/src/exchanges/gdax/GDAXExchangeAPI";
import {
CancelOrderRequestMessage,
You can’t perform that action at this time.