documentation?

Added by Emil 6 months ago

Jag har lyckats logga in på servern med python. Frågan är nu, vad ska jag göra nu?
Var hittar jag documentation och exempelkoder på hur man exempelvis få data osv....


Replies (8)

RE: documentation? - Added by Roger 6 months ago

Här finns exempelkod i Python som visar inloggning på api.test.nordnet.se och den publika feeden, samt prenumeration på prisdata på ERIC B:

https://github.com/nordnet/next-api-v2-examples/blob/master/python3/test_program.py

Här finns API-dokumentationen:

https://api.test.nordnet.se/api-docs/index.html

RE: documentation? - Added by Emil 6 months ago

Jag använde exempelkoden och det funkade bra.
Frågan är hur tar jag emot information exempelvis hur mycket pengar jag har på kontot?

RE: documentation? - Added by Roger 6 months ago

För att ta reda på hur mycket kapital du har på kontot kan du börja med att anrop följande för att få fram ditt kontonummer:

https://api.test.nordnet.se:443/next/2/accounts

Och sedan göra detta anrop med ditt kontonummer:

https://api.test.nordnet.se:443/next/2/accounts/{kontonummer}

Som svar får du JSON-data som ser ut som följer, där du kan se ditt kapital:

{
"account_credit": {
"currency": "SEK",
"value": 0
},
"collateral": {
"currency": "SEK",
"value": 0
},
"pawn_value": {
"currency": "SEK",
"value": 0
},
"trading_power": {
"currency": "SEK",
"value": 1000000
},
"loan_limit": {
"currency": "SEK",
"value": 1000000
},
"forward_sum": {
"currency": "SEK",
"value": 0
},
"future_sum": {
"currency": "SEK",
"value": 0
},
"account_currency": "SEK",
"interest": {
"currency": "SEK",
"value": 0
},
"account_sum": {
"currency": "SEK",
"value": 1000000
},
"unrealized_future_profit_loss": {
"currency": "SEK",
"value": 0
},
"own_capital": {
"value": 1000000,
"currency": "SEK"
},
"own_capital_morning": {
"currency": "SEK",
"value": 1000000
},
"full_marketvalue": {
"currency": "SEK",
"value": 0
}
}

RE: documentation? - Added by Jake about 1 month ago

Exactly what I needed! You just saved me several hours. Thanks!
https://www.tellpizzahut.online/

RE: documentation? - Added by website 24 days ago

I was very impressed by this post, this site has always been pleasant news Thank you very much for such an interesting post, and I meet them more often then I visited this site.https://royalcbd.com/west-virginia/

RE: documentation? - Added by Jake 15 days ago

Exactly what I needed! You just saved me several hours. Thanks! https://www.tellpizzahut.online/

self adhesive label - Added by website 4 days ago

Extremely intriguing online journal. A lot of web journals I see nowadays don't generally give anything that I'm keen on, however I'm most definitely inspired by this one. Recently felt that I would post and let you know. self adhesive label

RE: documentation? - Added by website 3 days ago

Persons appreciate shopping for amazing, appealing, fascinating and from time to time attractive aromas for them selves and pertaining to others. This can be executed conveniently along with inexpensively in an on-line perfume shop.먹튀

(1-8/8)