-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtest.js
30 lines (26 loc) · 1008 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
var bitmex = require("./modules/exchanges/bitmex/Rest");
var bitfinex = require("./modules/exchanges/bitfinex/Rest");
var Bitfinex = new bitfinex(
"IbvNB5mlFJH2o2JLj2r3fRXpn45y8HUAYXElOHcK7lP",
"x56I1fa7pMcmrv5ZRLrkQwd4eZKlRtVl4KPqIXGlust"
);
var Bitmex = new bitmex(
"amTL02nRYRAHi1xJOoPQEXke",
"FsU9xtC1l1Dr87kcWzHTdCGh_52VNPiOWD1eBTbRcmEBh-KW"
);
// Bitmex.getAnnouncement();
// Bitmex.getPositions();
var data = { symbol: "XBTUSD", orderQty: 1, price: 5900, ordType: "Limit" };
var wallet = { currency: "XBt" };
var ticker = { symbols: "tBTCUSD" };
var bitwallet = {};
var order = { type: 'LIMIT', symbol: 'tBTCUSD', price: '15', amount: '0.001' };
var updOrder = { id: 12345, price: '15', amount: '0.001' };
async function test() {
// var response = await Bitmex.getUserWallet(wallet);
// var response = await Bitfinex.getTickers(ticker);
// var response = await Bitmex.postOrder(data);
var response = await Bitfinex.postWallets(bitwallet);
console.log(response);
}
test();