Ny användarguide i Python3 som använder next-api v2 | New tutorial in Python3 which use next-api v2

Added by Nordnet Henrik 11 months ago

Hej,

Vi har en ny användarguide i Python 3. Guiden visar hur använder next-api version 2, till exempel hur man prenumererar på "Price Feed".

Henrik


Hi,

We have got a new tutorial using Python 3. The tutorial shows how to use next-api version 2, like for example how to subscribe to Price Feed.

Henrik


Replies (2)

RE: Ny användarguide i Python3 som använder next-api v2 | New tutorial in Python3 which use next-api v2 - Added by Nordnet Henrik 10 months ago

Hej igen,

Nu finns även en för Java.

Henrik


Hi again,

I have added one for Java.

Henrik

RE: Ny användarguide i Python3 som använder next-api v2 | New tutorial in Python3 which use next-api v2 - Added by Martin about 1 month ago

Hej! Tack för detta.
Här kommer lite feedback efter att ha försökt köra test_program.py på Windows 10, Python 3.7.2.

1. pip install av pycrypto (som refereras i requirements.txt) fungerar ej pga byggproblem (trots v15.0 Visual Basic C++ build tool).
- Lösning: pip install pycryptodome (fork baserad på pycrypto 2.6.1) fungerar för mig.
2. Har fastnat i problem med multiprocessing enligt nedan. Misstänker det har med windowsmiljö att göra men tar gärna emot tips!

Tacksam för respons om någon haft samma problem! =)

---------------------------------------------------------------------
Connecting to feed pub.api.test.nordnet.se:443...

Traceback (most recent call last):
File ".\test_program.py", line 212, in <module>
main()
File ".\test_program.py", line 187, in main
proc.start()
File "C:\Program Files (x86)\Python37-32\lib\multiprocessing\process.py", line 112, in start
self._popen = self._Popen(self)
File "C:\Program Files (x86)\Python37-32\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\Program Files (x86)\Python37-32\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\Program Files (x86)\Python37-32\lib\multiprocessing\popen_spawn_win32.py", line 65, in init
reduction.dump(process_obj, to_child)
File "C:\Program Files (x86)\Python37-32\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
File "C:\Program Files (x86)\Python37-32\lib\socket.py", line 192, in getstate
raise TypeError("Cannot serialize socket object")
TypeError: Cannot serialize socket object
PS C:\Users\eddievedder\python\next\next-api-v2-examples-master\python3>
File "<string>", line 1, in <module>
File "C:\Program Files (x86)\Python37-32\lib\multiprocessing\spawn.py", line 99, in spawn_main
new_handle = reduction.steal_handle(parent_pid, pipe_handle)
File "C:\Program Files (x86)\Python37-32\lib\multiprocessing\reduction.py", line 82, in steal_handle
_winapi.PROCESS_DUP_HANDLE, False, source_pid)
OSError: [WinError 87] The parameter is incorrect

(1-2/2)