NxCore Python wrapper. Requires the native NxCore library.
Project description
NxCore Python Wrapper
Process the NxCore market data feed and historical tape files. Requires the native NxCore Library(libnx.so, libnx.dylib, or NxCoreAPI64.dll depending on the operating system). Documentation can be found online or using docstrings(i.e. print(NxCore.ProcessTape.__doc__)).
Quick Start
pip install NxCore
Download and extract the demo.
Change directory to extracted folder and run:
import NxCore
def OnNxCoreCallback(NxCoreSys, NxCoreMsg):
if NxCoreMsg.MessageType == NxCore.NxMSG_TRADE:
header = NxCoreMsg.coreHeader
symbol = header.pnxStringSymbol.String
timestamp = header.nxExgTimestamp
trade = NxCoreMsg.coreData.Trade
price = NxCore.PriceToFloat(trade.Price,trade.PriceType)
size = trade.Size
print("Trade for {} at {:02d}:{:02d}:{:02d} for {} shares at ${:.2f}" \
.format( symbol, timestamp.Hour, timestamp.Minute, timestamp.Second, size, price))
return NxCore.NxCALLBACKRETURN_CONTINUE
#NxCoreAPI64.dll for Windows, libnx.so for x86 linux, libnx_aarch64.so for aarch64 linux, or libnx.dylib for macOS
if NxCore.LoadNxCore("NxCoreAPI64.dll"):
returnValue = NxCore.ProcessTape("demo.XU.nx2", 0, 0, 0, OnNxCoreCallback)
NxCore.ProcessReturnValue(returnValue)
else:
print("loading library failed")
Further examples and more detailed guides can be found on the NxCore Getting Started Webpage.
Full Installation
pip install NxCore
Download the latest Native Libraries.
Download an NxCore Sample tape.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nxcore-1.0.0.tar.gz.
File metadata
- Download URL: nxcore-1.0.0.tar.gz
- Upload date:
- Size: 73.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6abeaa0986c612f0e46469885c2e599a1d9b35f6acba8a0d7a1d6b4eb0e74e88
|
|
| MD5 |
85a9bf2bdbb262044d8c9145f4fbeb9a
|
|
| BLAKE2b-256 |
4daff097c249493eba332ca4dc7b3300369ede7ecf3b647ae08ddaf08109c6be
|
File details
Details for the file nxcore-1.0.0-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: nxcore-1.0.0-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 55.7 kB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c95da5a1a70a281e85e0f1b2250bdc87b44d2952063d5d211e7f8774522c555
|
|
| MD5 |
a80723d806184203f389d2da824f98e7
|
|
| BLAKE2b-256 |
22772e059a6c960177e59124d5525f6783c1bb4e9f9795baa1ac53b66d298a9f
|
File details
Details for the file nxcore-1.0.0-cp314-cp314-win32.whl.
File metadata
- Download URL: nxcore-1.0.0-cp314-cp314-win32.whl
- Upload date:
- Size: 49.6 kB
- Tags: CPython 3.14, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70ac34ed0e9cd8529b26ca1ce77557c9485803adec4da80aa661f8d338947289
|
|
| MD5 |
f9848fc8113263fed7e8d226bfd9166f
|
|
| BLAKE2b-256 |
a33f18c3a3c79a9e463d83d400b77f88445b8c7178de27a3deea4d144e18c198
|
File details
Details for the file nxcore-1.0.0-cp314-cp314-manylinux2014_x86_64.whl.
File metadata
- Download URL: nxcore-1.0.0-cp314-cp314-manylinux2014_x86_64.whl
- Upload date:
- Size: 327.1 kB
- Tags: CPython 3.14
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ca6e205f1a174c9107bd766f10ca3c97ac534c042fef27b6fd42686009564af
|
|
| MD5 |
94a62dd27361526bda322d2cece7ecb9
|
|
| BLAKE2b-256 |
e1f7e79e25ff62aa6abc3d0b9e26aab6696f040c98ef9496f7e4b6167ced9077
|
File details
Details for the file nxcore-1.0.0-cp314-cp314-manylinux2014_aarch64.whl.
File metadata
- Download URL: nxcore-1.0.0-cp314-cp314-manylinux2014_aarch64.whl
- Upload date:
- Size: 328.7 kB
- Tags: CPython 3.14
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f1e5b25a3b81ad3ace5701f433e840ecd505c689102478d4a33cd7b4d4652bf
|
|
| MD5 |
1e1c67ab755f2526c91a7fadc91c1c63
|
|
| BLAKE2b-256 |
66222e06d6adc742f96b0b7cb6c1ffc475a65731b91d103d3de35be90cddf9d3
|
File details
Details for the file nxcore-1.0.0-cp314-cp314-macosx_10_15_universal2.whl.
File metadata
- Download URL: nxcore-1.0.0-cp314-cp314-macosx_10_15_universal2.whl
- Upload date:
- Size: 108.2 kB
- Tags: CPython 3.14, macOS 10.15+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf423511ae2c90460bd59d74531dd4eed12fadf2c34337eb179fd4b1dd8202df
|
|
| MD5 |
cb65e4264b19b76d06ae0e34e4f4a280
|
|
| BLAKE2b-256 |
d57b7831a47b8fa18b77c99f1e29f39691059f1bc6fb44b89ebe5520d45e3105
|
File details
Details for the file nxcore-1.0.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: nxcore-1.0.0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 54.2 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a41cc2120e67c2c8853e258d24f15c0b8572086ea2604b2607fbb1c463e484b6
|
|
| MD5 |
933380a7798ae97c5eaecb81dfd4e28f
|
|
| BLAKE2b-256 |
3996ba54748e6f7939fcc37ea8b16d12e18e1d8da0d62d3151ceacdaeac0429a
|
File details
Details for the file nxcore-1.0.0-cp313-cp313-win32.whl.
File metadata
- Download URL: nxcore-1.0.0-cp313-cp313-win32.whl
- Upload date:
- Size: 48.4 kB
- Tags: CPython 3.13, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e6b3591ff5600526a89dd61a35d85ef7c70da95d59bd959d212d5a3c70a3565
|
|
| MD5 |
0c1d087d4e6f20ae4da9b5f49fa10990
|
|
| BLAKE2b-256 |
aa3473e13f59d4e44f3801d5596b7ee6d88446b4c516811f7f9e3ccaca41eed6
|
File details
Details for the file nxcore-1.0.0-cp313-cp313-manylinux2014_x86_64.whl.
File metadata
- Download URL: nxcore-1.0.0-cp313-cp313-manylinux2014_x86_64.whl
- Upload date:
- Size: 327.1 kB
- Tags: CPython 3.13
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4e62eb1d28ff3a268e40532f09cb67ad426e62c4286927905b033dc7391f41c
|
|
| MD5 |
62c5be146e9c62d4cfa1150ae3716054
|
|
| BLAKE2b-256 |
77a0e69681315c02f0fbb78df4d17ec8c5c75caa15544f0f6bbebb940096020e
|
File details
Details for the file nxcore-1.0.0-cp313-cp313-manylinux2014_aarch64.whl.
File metadata
- Download URL: nxcore-1.0.0-cp313-cp313-manylinux2014_aarch64.whl
- Upload date:
- Size: 328.7 kB
- Tags: CPython 3.13
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76ba4a522b89f086cbf4807196eef74fe586514c6ef8074af94671beb508ee04
|
|
| MD5 |
7102995b0bf54a930391ab67ffce11ab
|
|
| BLAKE2b-256 |
928327e2cd8d3112ccb3c342365c0614c440e6aa0ab5c20c0c71ea01406b322f
|
File details
Details for the file nxcore-1.0.0-cp313-cp313-macosx_10_13_universal2.whl.
File metadata
- Download URL: nxcore-1.0.0-cp313-cp313-macosx_10_13_universal2.whl
- Upload date:
- Size: 108.2 kB
- Tags: CPython 3.13, macOS 10.13+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4aeb3d33b7f746ba25b0f1c748c72f20d2d74f06803fa0b649a4f6eaf3c4939
|
|
| MD5 |
956629c97811393d535a61fe3c49db85
|
|
| BLAKE2b-256 |
ffed0890fcdc2f2478fe53728f0f48a98bb0d4cf8a67dc1405380e623e83c9f6
|
File details
Details for the file nxcore-1.0.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: nxcore-1.0.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 54.2 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6bd9c5f25c6edf0a60bc30b8902484ac74c3f90dcf929eb4d660923cf2819ae
|
|
| MD5 |
5981cbcf37cf47e0c1eaf780333b9951
|
|
| BLAKE2b-256 |
4832e7f9fe6024bd4973f6abae7106b6e162fbb289c3f755272c965c7f3d87eb
|
File details
Details for the file nxcore-1.0.0-cp312-cp312-win32.whl.
File metadata
- Download URL: nxcore-1.0.0-cp312-cp312-win32.whl
- Upload date:
- Size: 48.4 kB
- Tags: CPython 3.12, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1ae235c5b9a9616e701167dc9ea57d3e619c1f94adf57e9c176ba959d4b63a2
|
|
| MD5 |
7701f67ee3158aa8d6d11df92ce995ef
|
|
| BLAKE2b-256 |
a88684ae5877dddb144fda736aa25ca7f23cd61f326f4a16809cd2a51306bf8e
|
File details
Details for the file nxcore-1.0.0-cp312-cp312-manylinux2014_x86_64.whl.
File metadata
- Download URL: nxcore-1.0.0-cp312-cp312-manylinux2014_x86_64.whl
- Upload date:
- Size: 324.6 kB
- Tags: CPython 3.12
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61e5db511a7c4fd8eb9b284d9a5fd082b1a160ed4f27f183fc5e18f73306d35a
|
|
| MD5 |
e63f7cd95323194471d81e55ecf8609c
|
|
| BLAKE2b-256 |
cff4d82f28f61bd74af89ab459a997be84192dc3e477a70f4d24a80884521086
|
File details
Details for the file nxcore-1.0.0-cp312-cp312-manylinux2014_aarch64.whl.
File metadata
- Download URL: nxcore-1.0.0-cp312-cp312-manylinux2014_aarch64.whl
- Upload date:
- Size: 326.2 kB
- Tags: CPython 3.12
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a39004b2f1e6b066ab08bd793518e40a3359f7fc27c50773a67bfb6b4caa9da
|
|
| MD5 |
f169a003b05d931baf3f5678c9643fd7
|
|
| BLAKE2b-256 |
9ec82f2927515a166bd226f51b06ec58f3bf7c5ba558905973e4901148bdacdd
|
File details
Details for the file nxcore-1.0.0-cp312-cp312-macosx_10_9_universal2.whl.
File metadata
- Download URL: nxcore-1.0.0-cp312-cp312-macosx_10_9_universal2.whl
- Upload date:
- Size: 108.1 kB
- Tags: CPython 3.12, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d2c5b1be6c3a4d97a7d0980dd4154841df79b21204fa0328e1778d42269fb23
|
|
| MD5 |
6b7a35cb1f034a16857639c9c841e851
|
|
| BLAKE2b-256 |
3817ae760c725db6be494bb4dd5024b9a0ffb19e7371aca684623f7f7d159133
|
File details
Details for the file nxcore-1.0.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: nxcore-1.0.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 54.0 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f8729fe812be384de98a69548afe8b6f2a887621ccfb15e42e03e32f318c667
|
|
| MD5 |
ebb931abf1b14ef176e90663b7271438
|
|
| BLAKE2b-256 |
895088c98aa4ac850b37cdcb3a6701ca6c241644faeb1b872f1d97ec9814580b
|
File details
Details for the file nxcore-1.0.0-cp311-cp311-win32.whl.
File metadata
- Download URL: nxcore-1.0.0-cp311-cp311-win32.whl
- Upload date:
- Size: 48.3 kB
- Tags: CPython 3.11, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fbaf2b3fc33493af20512346c4da0d152ddd1985f695a9c86484903fd3c5b1d
|
|
| MD5 |
5ea5028f8246bb37e423814c3bffe2d0
|
|
| BLAKE2b-256 |
ebfd2b7ee043a759d41150d4a3e0626be4b9d0ef8a634c99a99043fd255b19de
|
File details
Details for the file nxcore-1.0.0-cp311-cp311-manylinux2014_x86_64.whl.
File metadata
- Download URL: nxcore-1.0.0-cp311-cp311-manylinux2014_x86_64.whl
- Upload date:
- Size: 315.6 kB
- Tags: CPython 3.11
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b27f01a00d3826a13056667de88e0cf210eb189985db5e970dfd39134986b6af
|
|
| MD5 |
aadca97fc4166cc3aec295be1b52db16
|
|
| BLAKE2b-256 |
c371fe33db5f6ad76024527262a5cc87aa74daa931a412b698e9470ef2d670bc
|
File details
Details for the file nxcore-1.0.0-cp311-cp311-manylinux2014_aarch64.whl.
File metadata
- Download URL: nxcore-1.0.0-cp311-cp311-manylinux2014_aarch64.whl
- Upload date:
- Size: 319.0 kB
- Tags: CPython 3.11
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e625f75738224fb2b85af8786ff782d652ba11b75ccd9f7c7cc2f345f289145
|
|
| MD5 |
3bf11291c2874dd919413a23a9bf60d9
|
|
| BLAKE2b-256 |
859a927b7780a06107156d3c4f14eaccd0b1fc0368ad7226264273799f23bb51
|
File details
Details for the file nxcore-1.0.0-cp311-cp311-macosx_10_9_universal2.whl.
File metadata
- Download URL: nxcore-1.0.0-cp311-cp311-macosx_10_9_universal2.whl
- Upload date:
- Size: 108.2 kB
- Tags: CPython 3.11, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99ac76a6decde76e66f97017dc7772c58373b3824e87a64b26baff53a1061c0a
|
|
| MD5 |
5cca2c13c84501eba8373101d6e1a800
|
|
| BLAKE2b-256 |
78b94ec56ca7ba9c0bbb59805eaa08ddb5e326ae2711104e7a524f8ae7c95bd6
|
File details
Details for the file nxcore-1.0.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: nxcore-1.0.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 54.0 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96d8c42a2d6fd114586c6d26ea64ff6f6caea8976bde5f204f38205c9da83244
|
|
| MD5 |
e83837e4630a63777aed0c43b976a05a
|
|
| BLAKE2b-256 |
f0ea1043fea1b81d4aeb9bfae36e3e8d187e7990ebddf745306dec4760d31f2c
|
File details
Details for the file nxcore-1.0.0-cp310-cp310-win32.whl.
File metadata
- Download URL: nxcore-1.0.0-cp310-cp310-win32.whl
- Upload date:
- Size: 48.3 kB
- Tags: CPython 3.10, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1fe26da99521f395fd4467ef0219ae2aed4b0f7bd732f10ffc52492bc09ebed
|
|
| MD5 |
927f32670b702d2086a98803dfbf1f49
|
|
| BLAKE2b-256 |
695f06e4839fcece36391ba4ce30ed1a72617b7c480878128ecbe47a02111ff8
|
File details
Details for the file nxcore-1.0.0-cp310-cp310-manylinux2014_x86_64.whl.
File metadata
- Download URL: nxcore-1.0.0-cp310-cp310-manylinux2014_x86_64.whl
- Upload date:
- Size: 314.9 kB
- Tags: CPython 3.10
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57a923c4ae08b2007401b8fd6015a3e383f908e9e8017b5a3c222fbe13cf4cc5
|
|
| MD5 |
b47888b4d89a92a20871c853687b7902
|
|
| BLAKE2b-256 |
7b095eee012999c9d0bdf43029bf23a5bfe8a2178ed49deb954f1d2e5f6a24ef
|
File details
Details for the file nxcore-1.0.0-cp310-cp310-manylinux2014_aarch64.whl.
File metadata
- Download URL: nxcore-1.0.0-cp310-cp310-manylinux2014_aarch64.whl
- Upload date:
- Size: 318.1 kB
- Tags: CPython 3.10
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7111007732fdbf4cdcff5d83e61f0ad230c48774933bb4b67965abde5a8c806b
|
|
| MD5 |
64c917fce2c8f507fa479f0810447ade
|
|
| BLAKE2b-256 |
634749a1db7d62d7d2eecdf101608c595ed59a12188fa183c68018a0ce085a13
|
File details
Details for the file nxcore-1.0.0-cp310-cp310-macosx_10_9_universal2.whl.
File metadata
- Download URL: nxcore-1.0.0-cp310-cp310-macosx_10_9_universal2.whl
- Upload date:
- Size: 108.2 kB
- Tags: CPython 3.10, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6556635a6a2430e95b2ec1d5a82ff01c874fcee22848ac65b340749689b2abc3
|
|
| MD5 |
a2d0febaf36ec692b219b3b3e3c97554
|
|
| BLAKE2b-256 |
32ad1556c9fce9abc980272cb2e23a5a9d4b642d2f9e25c7cad139d5cd672635
|