Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Thanks, that helps. This seems like a pure python issue, so I'm not sure how on topic it is here, but don't you want something like from okx import Trade? What documentation are you following? What told you to try import okx.Trade? Commented Jan 3 at 16:47
  • @terdon I'm following okex API docs https://www.okx.com/docs-v5/en/?python#order-book-trading-trade-post-place-order Commented Jan 3 at 16:53
  • 1
    Fair enough, that does seem to be what they suggest. Still, I suspect you would get better answers over at Stack Overflow since this really isn't about Linux or Unix at all. Commented Jan 3 at 16:57
  • Whether the question remains here or is moved over to Stack Overflow, include whether or not the directory to which okx was installed is in your Python path and whether or not you have access to the directory and its contents. Commented Jan 3 at 21:40