Skip to main content
https://img.shields.io/pypi/v/jockmkt-sdk?style=for-the-badge https://img.shields.io/github/license/nysugfx/jockmkt-sdk?style=for-the-badge https://img.shields.io/pypi/pyversions/jockmkt-sdk?style=for-the-badge

This is an unofficial wrapper built to interface with the Jock MKT API.

The developer of this sdk is in no way affiliated with Jock MKT – please use at your own risk.

The aim of this SDK is to build a host of easy-to-use tools for users to interact with the Jock MKT API. It includes every possible api call, every optional argument, and objects that organize all of their responses. In the future, additions will be made to further simplify these api calls with the addition of useful tools.

JockMKT Official API Docs

Code snippet

# the following code will buy $50 worth of shares for every player in an event
# whose last traded price is less than the estimated price
client = Client()
client.get_auth_token(secret_key, api_key)
event = client.get_event(event_id, include_tradeables=True)
for tradeable in event.tradeables:
     if tradeable.last < tradeable.estimated:
         auth.place_order(tradeable.id, price=tradeable.estimated, size=50)

Installation (via PyPi)

pip install jockmkt-sdk

PyPi Link

Note: If you have problems installing, please ensure that you have updated pip and setuptools. If you still have trouble, please install requirements manually.

Contribute

Docs

Features

  • Calls for every API endpoint

  • Exception handling

  • Simple auth token generation & use

  • Simple order placement

Getting Started

Obviously, create an account at jockmkt.com

Contact developers@jockmkt.com for your auth keys

Authorization & basic calls:
from jockmkt-sdk.client import Client
api_key = '<jm_key_xxx>'
secret_key = '<xxx>'

client = Client(secret_key, api_key)

#display the first 100 nba entities
players = client.get_entities(start=0, league='nba')

#get 25 recent and upcoming events:
events = client.get_events()

#get the last 500 events:
fetchall_events = []
for i in range(5):
     fetchall_events.append(client.get_events(start=i, limit=100))

#get a single event:
event_id = events[0].event_id
event = client.get_event(event_id, include_tradeables=True)

#join an event:
entry = client.create_entry(event_id)

#view event profit:
print(entry.profit)

#view event tradeables:
tradeables = event.tradeables

#pick a specific player and place an order during IPO phase at the Jock MKT estimated price:
for player in tradeables:
     if player.name == 'Paul George':
          client.place_order(player.tradeable_id, player.estimated)

#buy a specified $ amount worth of a player at the market price, during live trading:
order = client.create_order(id=player.tradeable_id, price=player.ask,
     phase='live', order_size=100)

#cancel order
client.cancel_order(order['order']['id'])

Contact

nysu.gfx@gmail.com

Release files for jockmkt-sdk 0.2.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jockmkt-sdk 0.2.15
File Size Uploaded
jockmkt-sdk-0.2.15.tar.gz 25.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jockmkt-sdk 0.2.15
File Interpreter ABI Platform
jockmkt_sdk-0.2.15-py3-none-any.whl Python 3 none any Details

Total release size:51.7 kB

Release files / jockmkt-sdk-0.2.15.tar.gz

Download URL jockmkt-sdk-0.2.15.tar.gz
Size 25.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b9a2444f0881a6f227ea16c24d169a8d5255b12dec8249a4868457e681c35c19
BLAKE2b-256 checksum
How to use checksums
8fe05d917bdd9f76ae6ee127465623276c2edbd74c5bbeede306882c17a25dc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / jockmkt_sdk-0.2.15-py3-none-any.whl

Download URL jockmkt_sdk-0.2.15-py3-none-any.whl
Size 26.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8fa2157c4b857dd551b850320d01be57ce91a20005bf57042207c38a36ecc42
BLAKE2b-256 checksum
How to use checksums
7b67c76e49dda4e229f0ea9a994c1a7f3ea5803a47dac242d993f09b3287e167
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.2.15 This release

2 release files

0.2.14

2 release files

0.2.13

2 release files

0.2.12

2 release files

0.2.11

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page