This project is not maintained anymore.

After many years of working on Gekko, I’ve decided to stop my involvement in maintaining this project. You can read more about this decision on medium.

I’m now putting all my focus on my new prop trading firm Folkvang. You can find an article about that here on Coindesk.

If you’re interested in following this new journey, feel free to add me on Twitter.

Best of luck to everyone in their trading. So long, and thanks for all the fish!

Fork me on GitHub

Sticky Order #

An advanced order that stays at the top of the book (until the optional limit). The order will automatically stick to the best BBO until the complete amount has been filled.


Example usage #

const Broker = require('gekko-broker');

const gdax = new Broker({
  currency: 'EUR',
  asset: 'BTC',

  exchange: 'gdax',

  // Enables access to private endpoints.
  // Needed to create orders and fetch portfolio
  private: true,

  key: 'x',
  secret: 'y',
  passphrase: 'z'


const type = 'sticky';
const amount = 0.5;
const side = 'buy';
const limit = 6555;

const order = gdax.createOrder(type, side, amount, { limit });
order.on('statusChange', status => console.log(status));
order.on('filled', result => console.log(result));
order.on('completed', () => {
  order.createSummary(summary => console.log)

// mutate like so

// order.moveAmount(1);
// order.moveLimit(6666);