Comments (4)
Hey @valmassoi
Have you cloned GTT or using the npm package? Because imports are a bit different depending.
If the latter you can still so 100% Javascript route and use whatever import/require format you're comfortable with.
We've also seen some issues depending on the version of tsc, ts-node & node. I'm currently using
ts-node v3.3.0
node v7.10.1
typescript v2.5.2
Also #17 may / may not be helpful.
from coinbase-pro-trading-toolkit.
@CjS77 I'm using it as a npm package. I think it needs the @types
published to be used as a package https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html
from coinbase-pro-trading-toolkit.
All the type definitions (*.d.ts
) are included in the the npm package, so there's no need to publish the types separately. (@types
is for JS-only packages that don't have type information associated with them).
There are 2 definite issues that I've picked up that might be affecting you:
- A few classes have been accidentally missed in the export sections of the relvant
index.ts
files. (#59). The workaraound right now is to include the full path to the class - The type definitions for some dependencies (e.g. ccxt) are not automatically found when using the npm package even though they are there). A workaround for this right now is to copy the
types
directory from the package to the root folder of your project. At some point we need to publish @types for those, or better yet, get the .d.ts files added to the source projects.
from coinbase-pro-trading-toolkit.
v0.1.22 fixes this issue, so no need to use the workaround anymore
from coinbase-pro-trading-toolkit.
Related Issues (20)
- No documented way to access Level3 orderbook HOT 2
- Access Heartbeat from GDAXFeed HOT 1
- Can't Run .js Code HOT 2
- gdaxConsole.ts -- Promise' only refers to a type, but is being used as a value here. HOT 1
- Memory leak? HOT 4
- Close issue in bitfinex feed. HOT 1
- No longer able to attach other transports to Logger HOT 3
- Intermittent response messages from GDAX HOT 6
- Project status / future development? HOT 4
- t005alertTrader.ts gdaxAPI.placeOrder() error
- Array vomit in console HOT 3
- auth'd web socket doesn't work HOT 4
- "limit" order on Coinbase executes as market order HOT 1
- ccxt: LoadTicker(), ticker's bid value is populated with ask and vice versa HOT 1
- Trader.placeOrder fails on sandbox but GDAXExchangeAPI.placeOrder succeeds HOT 1
- Question: possible to have Trader and LiveOrderbook running simultaneously HOT 2
- Trader placeOrder catch err.asMessage UnhandledRejection HOT 1
- LiveOrderbook no longer processing tradeExecuted and tradeFinalized messages. HOT 3
- Calculation for 12h and 1d is incorrect in IntervalInMS HOT 1
- t002_liveOrderbook.ts SyntaxError: Unexpected token * HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coinbase-pro-trading-toolkit.