Skip to content

Fixed V2 integration for entering trades on the function: "place_order"#22

Open
BrianWeiss1 wants to merge 4 commits into
arshka:mainfrom
BrianWeiss1:main
Open

Fixed V2 integration for entering trades on the function: "place_order"#22
BrianWeiss1 wants to merge 4 commits into
arshka:mainfrom
BrianWeiss1:main

Conversation

@BrianWeiss1

Copy link
Copy Markdown

No description provided.

@caelum24 caelum24 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only the post requests had /events/ added to them for V2 it seems. Getting orders should still be just fine without the update

@BrianWeiss1

BrianWeiss1 commented Jun 25, 2026

Copy link
Copy Markdown
Author

Also the request input changed, the order data dictionary should look like this now:

        order_data: dict = {
            "ticker": ticker_str,
            "side": v2_side,
            "count": count_fp,
            "price": f"{yes_price:.4f}",
        }
        ```
        instead of:
        ```
      order_data: dict = {
            "ticker": ticker_str,
            "action": action.value,
            "side": side.value,
            "count_fp": count_fp,
            "yes_price_dollars": yes_price_dollars,
        }
        ```

@BrianWeiss1

Copy link
Copy Markdown
Author

but yes, getting orders should still be correct. Just placing orders fails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants