ilanfrumer / bitmex-nodejs Goto Github PK
View Code? Open in Web Editor NEWAn unofficial BitMEX API connector written with typescript
An unofficial BitMEX API connector written with typescript
Can you create and close orders with this? Just want to make sure before I dive deep into this :)
If so, is there any example? I see that you mention that this module is capable of executing functions in the Bitmex API explorer (https://www.bitmex.com/api/explorer/).
I looked through the code and realized auth headers are only passed to endpoints that require it. Authenticated requests are allowed at a rate of 60 / minute, whereas unauthenticated requests are only allowed at a rate of 30 / minute.
Is this something that can be fixed so that all requests will pass auth headers if they are available?
Beginning 2021-11-01, the current bitmex.com/reatime
endpoint will become unstable. It will become fully defunct 2022-02-01.
The new endpoint is ws.bitmex.com/realtime
Hi bro.
I couldn't find any documentation or any help to use socket.
PLease leave an example to get trades, Create order, ament or etc.
Thank's in advance.
I'm getting the error message:
{
"message": "Signature not valid.",
"name": "HTTPError"
}
for the following code:
const r = require('bitmex-node');
const BITMEX_API_KEY = .....
const BITMEX_API_SECRET = .....
const bitmex = new r.BitmexAPI({
"apiKeyID": BITMEX_API_KEY,
"apiKeySecret": BITMEX_API_SECRET
});
!async function () {
const position = await bitmex.Position
.get({message: 'messageIncoming' })
.catch(err => {console.log(err);
});
}();
Hi! I expect only open orders. But I get all the orders
async getOpenedOrders () {
const orders = await REST.Order.getOrders({ "open": true })
return orders
}
What am I doing wrong? Thank!
Do you have any advice on how to work around this issue?
Access to fetch at 'https://www.bitmex.com/api/v1/trade/bucketed?binSize=5m' from origin 'http://192.168.0.8:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I'm using this with reactjs
Hey! First of all: Thanks for this client!
I use the BitmexSocket class and sometimes (like every 12-24h) the subscriptions are closing without an error and without being completed. They just stop emitting values...
Do you have any idea why this happens? I think this is a common issue, isn't it?
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.