Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

gdax-fix-client

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gdax-fix-client

gdax client for ultra low latency strategy with fix protocol

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

GDAX-Fix-Client

GDAX Client for connecting and develop ultra fast trading strategy, using FIX protocol

Instructions:

Digit in terminal:

npm install gdax-fix-client

or,

git clone https://github.com/Saurox/GDAX-Fix-Client.git

for entire git repo copy

USE:

Declare client with:

var exampleClient = require(./index)

Init client with:

example Method: client.initClient(symbol)

here you initialize all client, websocket, rest, and fix with your symbol

Now your client is connecting and ready for send and get info, you can update market and your account data with:

Method: updateData()

your account data is ontained via rest so call this function with a minimum interval of 200 ms

Now, you can get data object with:

Method: getData()

this is an Javascript Object with all info about market and account conditions for symbol specificated, for retrive your open orders:

Method: getOrders()

Send and cancel order method are:

sendOrder(Type, side, price, amount)

Type in format 1 = Market, 2 = Limit Order Side in format 1 = Buy, 2 = Sell, price and size in double value cancelOrder(ClOrdID,OrderID)

ClOrdID = your original order id OrderID = your order id obtained via FIX

Enjoy!!!

for contribuitions and donations:

BTC ADDRESS: 14QJZTGp6bh2SUXZNuWmZuX87DUdKYNjSt ETH ADDRESS: 0x2eab6da667abe5f935e755bcdf8381be17d13f50 DASH ADDRESS: Xb7VHvjWPsif1dXPYfgZ9NFpZL5fBFhbGP

Thanks you!

Keywords

gdax

FAQs

Package last updated on 15 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts