Login and feed example in Node.js subscribePrice(30, '1869', sessionData) return data.

Added by Christoffer over 6 years ago

hejsan, jag har testa erat

Login and feed example in Node.js

men kan inte få subscribePrice att fungera, får bra konstig data se nedan

[123,34,99,109,100,34,58,34,104,101,97,114,116,98,101,97,116,34,44,34,97,114,103,115,34,58,123,125,125,10]

testa exakt med eran kod subscribePrice(30, '1869', sessionData);

hade förväntat att man skulle få någon sådant som detta

{
"cmd": "price",
"args": {
"i": "1869",
"m": 30,
"t": "price",
"trade_timestamp": "2010-01-22 16:17:23",
"tick_timestamp": "2010-01-22 16:18:42",
"bid": "0.00",
"bid_volume": 0,
"ask": 101.00,
"ask_volume": 200,
"close": 101.00,
"high": 101.00,
"last": 101.00,
"last_volume": 200,
"lot_size": "1",
"low": 101.00,
"open": 0.00,
"turnover": 6605400,
"turnover_volume": 65400
}
}

vad gör jag för fel?

/Christoffer


Replies (11)

RE: Login and feed example in Node.js subscribePrice(30, '1869', sessionData) return data. - Added by Nordnet Tommi over 6 years ago

Provade exemplet igen eftersom det finns risk för att senare versioner av Node skulle kunna strula med det fungerar fint med:

$ node -v
v0.10.26

och dessa paket:
├─┬ restler@3.2.0
│ ├── iconv-lite@0.2.11
│ ├── qs@0.6.6
│ ├─┬ xml2js@0.4.0
│ │ ├── sax@0.5.8
│ │ └─┬ xmlbuilder@2.1.0
│ │   └── underscore@1.6.0
│ └── yaml@0.2.3
└── ursa@0.8.0

Dock fick jag prova ett annat instrument för att få någon prisinformation, exempelvis fungerar subscribePrice(11, '101', sessionData);.

Prova att ändra utskriften på rad 53 från util.log(d); till console.log(d.toString());.

RE: Login and feed example in Node.js subscribePrice(30, '1869', sessionData) return data. - Added by Christoffer over 6 years ago

tack fick det att fungera nu

console.log(d.toString());

var precis det som behövdes för att få det att fungera

/Christoffer

토토사이트 - Added by website 2 months ago

The virtual casino online lets you buy tokens or credits via bank card, check, bank transfer or one a great a number of other internet payment methods, for instance NETeller or Firepay. 토토사이트

RE: Login and feed example in Node.js subscribePrice(30, '1869', sessionData) return data. - Added by website 2 months ago

So the important point listed here is to first learn the requirement on your own by calling their state authorities, then you start calling the casino companies and ask them what must have a casino fundraiser. An excellent casino party company will ask you when you have your license and manage to email you the forms needed to obtain the license.토토

https://royalcbd.com/how-to-take-cbd-oil/ - Added by website about 1 month ago

When you use a genuine service, you will be able to provide instructions, share materials and choose the formatting style. https://royalcbd.com/how-to-take-cbd-oil/

바카라사이트 - Added by website about 1 month ago

Where are you going to meet major casinos and major baccarat sites now? If you are staying in a place other than the king of Gungjeung site, leave immediately. After verifying the betting sites with an incomparable high level, we recommend the best of online casinos to you by choosing the best rated casino site and baccarat site. 바카라사이트

RE: Login and feed example in Node.js subscribePrice(30, '1869', sessionData) return data. - Added by website about 1 month ago

I'm impressed, I must say. Very rarely do I come across a blog thats both informative and entertaining, and let me tell you, you ve hit the nail on the head. Your blog is important..먹튀검증

2nd hand mercedes - Added by website about 1 month ago

Just pure classic stuff from you here. I have never seen such a brilliantly written article in a long time. I am thankful to you that you produced this! 2nd hand mercedes

RE: Login and feed example in Node.js subscribePrice(30, '1869', sessionData) return data. - Added by website 24 days ago

Midtown Bay is situated at one of Singapore' busiest in the Core Central area, Beach Road. The integrated development is within walking distance to multiple MRT ...midtown bay

emi without credit card - Added by website 20 days ago

Wow, this is really interesting reading. I am glad I found this and got to read it. Great job on this content. I like it. emi without credit card

BBQ and Hog Roast buffet catering Sutton Coldfield - Added by website 13 days ago

I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, BBQ and Hog Roast buffet catering Sutton Coldfield

(1-11/11)