Skip to content

Function locations? #2

@Indiana3714

Description

@Indiana3714

Hi @mazmex7

Wondering if you can let me know how to find the relevant functions? Swagger python client confuses me a lot.

Eg your sample file shows:
orders = bitmex_cli.Order.Order_getOrders(symbol='XBTUSD', reverse=True).result()

How did you know it was done in Order.Order_getOrders()?

Looking at bitmex doesnt really indicate this

I've been trying to scan the bravado file etc to no avail too.

I've managed to get "active_positions = client.Position.Position_get().result()" but that was purely by guessing sadly

I'm looking at the auto generated docs for python:

This should work but doesn't (even though it is shown in UserApi.md)
a = client.User.user_get_margin().result()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions