jamesmcmurran / gdaxmarketmakertrader Goto Github PK
View Code? Open in Web Editor NEWThe Goal of this project is to make it so that you can just focus on your buy down and profit logic and not have to handle anything else.
The Goal of this project is to make it so that you can just focus on your buy down and profit logic and not have to handle anything else.
is not 100% but will stop it eventually
More than one buy order can happen as the cancel sometimes fails when trading gets heavy.
I got this after weeks of running.
Hi,
First I must thank you for posting your code. My winter project was to write something similar, and I found your project in the comments for the gdax-tt project in which someone else was looking for a tutorial.
Now for the other reason I'm here..I am trying to use your code for ETH-USD and after my buy order finalized, I expected the automatic buy/sell orders to go through, but I didn't see any pop up and looking at the output, the result was "undefined" for both. Wondering if you have seen this before in my output below.
Thanks
Rod
Order Finalized
Calc profit price:935.00000000 + 0.25 = 935.25
Calc Buydown price:935.00000000 - 0.25 = 934.75
Cleared Buy order
I just bought 1 at 935.00000000
{}
side:buy Amount:1 Price:934.75
side:sell Amount:1 Price:935.25
Buy Limit placed for 1 at 934.75 and a sell limit for 1 at 935.25
Order to buy 1 'ETH-USD' for934.75. Result: undefined
-------Order-------
type:order
Time:null
ProductId:ETH-USD
OrderType:limit
Side:buy
Size:1
Price:934.75
Order to sell 1 'ETH-USD' for935.25. Result: undefined
-------Order-------
type:order
Time:null
ProductId:ETH-USD
OrderType:limit
Side:sell
Size:1
Price:935.25
For some reason, fully valid orders will sometimes fail.
Error: A GDAX API request failed. Bad Request.
-------Order-------
type:order
Time:null
ProductId:LTC-USD
OrderType:limit
Side:buy
Size:1
Price:60.14
How to fix?
/lib/node_modules/ts-node/src/index.ts:329
throw new TSError(formatDiagnostics(diagnosticList, cwd, ts, lineOffset))
^
TSError: ⨯ Unable to compile TypeScript
Trader.ts (30,5): Type 'string' is not assignable to type 'number'. (2322)
at getOutput (/lib/node_modules/ts-node/src/index.ts:329:15)
at Object.compile (/lib/node_modules/ts-node/src/index.ts:515:11)
at Module.m._compile (/lib/node_modules/ts-node/src/index.ts:402:43)
at Module._extensions..js (module.js:654:10)
at Object.require.extensions.(anonymous function) [as .ts] (/lib/node_modules/ts-node/src/index.ts:405:12)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Function.Module.runMain (module.js:684:10)
at Object.<anonymous> (/lib/node_modules/ts-node/src/bin.ts:145:12)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.