Coder Social home page Coder Social logo

imxpy's Introduction

dimfred

A python package, with abbrevations and some utility classes, functions which I use regularly.

imxpy's People

Contributors

dimfred avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

tale-quale mjce85

imxpy's Issues

cancel_order() always returns success

From what I can tell the Client.cancel_order() function is returning a success regardless of the order_id that's passed in and it doesn't seem to actually be cancelling the order when passed a real order_id on the main net

missing headers in transfer tokens

IMX updated the parameters for the transfer of tokens, and now it is required to add parameters to the header, where can I do this?

client = IMXClient(
net="main", n_workers=1, pk="PRIVATE_KEY")

token_gods = ERC20(symbol='GODS', quantity=1, type="ERC20", decimals=18, contract_addr='0xccc8cb5229b0ac8069c51fd58367fd1e622afd97')

some_params = TransferParams(sender=sender_address, receiver=receiver_address, token=token_gods)
future = client.transfer(params=some_params)
res = future.result()
print(res)
returns:
{'status': 'error', 'result': 'x-imx-eth-signature and x-imx-eth-address headers both required'}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.