FMZ now supports the dYdX exchange.
The API documentation address is:https://docs.dydx.exchange/#get-account-leaderboard-pnls
dYdX currently has a spot, permanent contract, on FMZ permanent contract code isswap
。
Information needed to configure
Here is a picture:
How to get the above profile information:
The first thing you need is a wallet.
Log in to wallet on dYdX
ETH assets are required in the wallet and then prompted to create a dYdX account.
The need for changeUSDC
In addition, the DYdX can be used to view the available assets.
The following information can then be viewed in your browser:
You can get it.API_KEY_PAIRS
,STARK_KEY_PAIRS
。
API_KEY_PAIRS includes:
key: xxxxxx
The corresponding fill-in on FMZAccess Key
。
secret: xxxxxx
The corresponding fill-in on FMZSecret Key
。
passphrase: xxxxxx
The corresponding fill-in on FMZPassphrase
。
STARK_KEY_PAIRS includes:
publicKey: xxxxxx
The corresponding fill-in on FMZStark PublicKey
。
privateKey: xxxxxx
The corresponding fill-in on FMZStark PrivateKey
。
Set the limitFee Set the limitFee when ordering and set it to be effective once. For example:
exchange.IO("limitFee", 0.011)
Set secondsOfValidity, set to run once. For example: Set the order validity time in units of seconds.
exchange.IO("secondsOfValidity", 60 * 60 * 24 * 7) // 设置有效期为7天
Set simulate, set to one-time effect. For example:
Switching the analog environment requires switching the base address tohttps://api.stage.dydx.exchange
:
exchange.IO("simulate", true)
Holdings are not subject to freezing of account assets, but are subject to inspection, and over-holdings are not allowed.
When calling GetAccount on FMZ, the structure returnedFrozenBalance
The field is for the number of holdings of the asset.
It is best to have no more than 100 listings, and the exchange interface is limited to 100 orders. Although there is a page-split query, the interface seems to have some problems.
ddr13Dreams, I used the official python package dydx-v3-python.
Traceback (most recent call last):
File "/Users/CHIN/Documents/dydx_workspace_py/dydx-v3-python-master/examples/demodydxcreateorder.py", line 1, in
fantadongI don't know why I can't find STARK_KEY_PAIRS
luke_baoF12 can't find the relevant information?
luke_baoIs it possible to use these key values now?
luke_baoI'd like to know why the "Internal error, couldn't fetch data for subscription: v3_accountsAPI key not found" error?
FMZ_ small white_YYSDHello, I've always wanted to ask, are the ETH and USDC on the Ethereum public chain? my wallet is the ETH and USDC on the HECO chain, the wallet is not balanced when connected, the connection failed is this the problem?
JAnd there's something new to play with.
scottliyqSupport
Difficult to quantifyThe dream is complete, yyds.
TbancoI'm so proud of you, and I'm so proud of you.
ZeroAlphaAPI_KEY_PAIRS is not found
Inventors quantify - small dreamsThis Python package is not very clear on how to use it. FMZ has access to dYdX, without the official SDK.
Inventors quantify - small dreamsThe first connection requires authentication, which will consume the ETH of the wallet into GAS. Then you can see the strong key pair in the browser.
Inventors quantify - small dreamsThere is an authorization process to connect the wallet; the wallet needs ETH.
luke_baoWell, it's probably a browser issue or something, it hasn't been up until now.
Inventors quantify - small dreamsI'm not going to change it.
Inventors quantify - small dreamsRight-click, go to the browser's console page and look for what you should find. Try it in Chrome.
luke_baoThank you, I found the problem.
Inventors quantify - small dreamsI think KEY got it wrong.
Inventors quantify - small dreamsYes, I just recently charged, USDC ETH in the wallet is going, after the link on the wallet authorization, one step USDC transfer to dYdX can be done, that is, the fee is a little high, a few dozen U is not necessary.
Inventors quantify - small dreams^^ Thank you for your support of FMZ.
Inventors quantify - small dreamsIn order to connect the wallet, the wallet must also have ETH, USDC.