Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Snippet under "Getting Started" doesn't work #14

Closed
AdamStelmaszczyk opened this issue Dec 22, 2016 · 0 comments
Closed

Snippet under "Getting Started" doesn't work #14

AdamStelmaszczyk opened this issue Dec 22, 2016 · 0 comments
Assignees
Labels

Comments

@AdamStelmaszczyk
Copy link
Contributor

Snippet in https://github.com/smarkets/smk_python_sdk#getting-started is outdated.

Looks like:

  • settings.host and/or settings.port was changed
  • order.market is obsolete, one should use order.market_id instead, the same for order.contract
  • order.time_in_force was renamed to order.tif
  • BUY was renamed to SIDE_BUY

Expected behaviour:

After copy pasting it to Python REPL (with correct credentials, market_id and contract_id) it should login and place a bet.

@pianiel pianiel self-assigned this Jan 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants