Skip to content

alphapoint/ExampleFeeUpdater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ticket Fee Updater

This is a simple example of a script that

  • Logs in using an API Key and Secret
  • Listens to account events, filtering for ticket events
  • Checks the amount of the ticket
  • If greater than 1000, change the fee to 0

Install

npm install

Start

npm run start

TODOS

  • Add Keep Alive for session
  • Add reconnect logic (check for unhandled tickets)
  • Add per product configs for threshholds and notional vs absolute amounts
  • Add comments to the ticket to create an audit trail of why the ticket was updated

About

Simple script to update fees for withdrawal (and deposit) tickets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published