unsubscribe på enskilt instrument

Added by Robert over 7 years ago

Efter att ha läst ett tidigare inlägg här [[https://api.test.nordnet.se/boards/2/topics/655]] antog jag att det gick att unsubscrib:a
till specifika instrument. jag startar upp 6 olika subscribe, men redan efter första unsubscribe (se nedan) får jag
följande fel när jag försöker läsa från feedet:

"Unable to read data from the transport connection: An established connection was aborted by the software in your host machine."

Kan någon svara på om det går eller inte, samt om kopplingen också skall stängas av servern vid första unsubscribe
eller om jag går något fel.

Såhär ser mitt första subscribe ut:
{"cmd":"subscribe", "args":{"t":"price", "i": "817", "m":11}
och mitt unsubscribe:
{"cmd":"unsubscribe", "args":{"t":"price", "i": "817", "m":11}

//Tack på förhand, Robert


Replies (13)

RE: unsubscribe på enskilt instrument - Added by Nordnet Simon over 7 years ago

Hej, det är lite svårt att svara på exakt vad som går fel utan att se koden.

Men du får aldrig synkrona svar på feeden. Så när du gör subscribe eller unsubscribe skickas inga svar tillbaka till dig. Om det finns aktuellt pris så skickas det vid subscribe.

Kan det vara så att du försöker forcera en läsning efter du har unsubscribat?

Exemplet nedan kommer från en körning i test.

Först login
Subscribe på Eric B. Det pris som finns kommer.
Subscribe på Haldex. Det pris som finns kommer
Unsubscribe på Haldex. Inget synkront svar.
Det kommer en prisuppdatering på ERIC B.


Send: {"cmd":"login","args":{"session_key":"session_id from http login reply","service":"NEXTAPI"}}
Send: {"cmd":"subscribe","args":{"t":"price","m":11,"i":"101"}}
Receive: {"cmd":"price","args":{"i":"101","m":11,"t":"price","trade_timestamp":"2013-04-25 15:06:07","tick_timestamp":"2013-04-25 15:06:07","bid":80.00,"bid_volume":91,"ask":80.60,"ask_volume":4,"close":80.05,"high":80.50,"last":80.00,"last_volume":9,"lot_size":1,"low":66.00,"open":80.00,"vwap":80.10,"turnover":89156.00,"turnover_volume":1113}}
Send: {"cmd":"subscribe","args":{"t":"price","m":11,"i":"817"}}
Receive: {"cmd":"price","args":{"i":"817","m":11,"t":"price","trade_timestamp":"1970-01-01 01:00:00","tick_timestamp":"2013-04-25 14:01:32","bid":38.00,"bid_volume":1299,"ask":0.00,"ask_volume":0,"close":38.70,"high":0.00,"last":0.00,"last_volume":0,"lot_size":1,"low":0.00,"open":0.00,"vwap":0.00,"turnover":0.00,"turnover_volume":0}}
Send: {"cmd":"unsubscribe","args":{"t":"price","m":11,"i":"817"}}
Receive: {"cmd":"price","args":{"i":"101","m":11,"t":"price","trade_timestamp":"2013-04-25 15:25:33","tick_timestamp":"2013-04-25 15:25:33","bid":80.00,"bid_volume":91,"ask":80.60,"ask_volume":2,"close":80.05,"high":80.60,"last":80.60,"last_volume":1,"lot_size":1,"low":66.00,"open":80.00,"vwap":80.11,"turnover":89317.20,"turnover_volume":1115}}

RE: unsubscribe på enskilt instrument - Added by Robert over 7 years ago

Aha, ok men då vet jag exakt vad som skall skickas iaf och att jag inte skall förvänta mig ack.

Tack för hjälpen, jag söker vidare :)

먹튀검증커뮤니티 - Added by website 2 months ago

As being a real casino you can play the whole array of casino games online. These games include: slots, progressive slots, poker, video poker, baccarat, blackjack, keno, roulette, Sic-bo with many varieties and themes. "먹튀검증커뮤니티"https://totoca.net

RE: unsubscribe på enskilt instrument - Added by website 2 months ago

The idea I need you remember here's that you ought to have the casino party company devote writing that they could be the company doing your event and won't subcontract to another company. Additionally it is advisable to require the casino company to produce photographs of the precise tables they'll use at the event.먹튀검증

https://royalcbd.com/cbd-dosage-for-dogs - Added by website about 1 month ago

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. https://royalcbd.com/cbd-dosage-for-dogs

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

Top of the online casino site Baccarat site recommended by Hitmen, the verification king, Woori Casino 바카라사이트

Synthetic Gear Lube - Added by website about 1 month ago

Advanced AMSOIL technology delivers premium protection and performance from bumper to bumper Synthetic Gear Lube

Mercedes GLC - Added by website about 1 month ago

Our credit repair services work to fix past credit mistakes and verify credit report accuracy. Talk to a credit repair expert today! Mercedes GLC

RE: unsubscribe på enskilt instrument - Added by website 26 days ago

Target to launch in 1H 2020, and for official details project details, floor plans, showflat appointment to be obtained at https://www.theola-ec.com.sg. No of Units ...ola ec

emi card - Added by website 21 days ago

Interesting post. I Have Been wondering about this issue. so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks emi card

먹튀검증게임즈 - Added by website 17 days ago

I really like your blog. Great article. It's most evident, people should learn before they are able to 먹튀검증게임즈

BBQ and Hog Roast buffet catering Worthing - Added by website 15 days ago

I'm constantly searching on the internet for posts that will help me. Too much is clearly to learn about this. I believe you created good quality items in Functions also. Keep working, congrats! BBQ and Hog Roast buffet catering Worthing

best uppababy stroller organizer - Added by website 1 day ago

I'm constantly searching on the internet for posts that will help me. Too much is clearly to learn about this. I believe you created good quality items in Functions also. Keep working, congrats! best uppababy stroller organizer

(1-13/13)