2022 Developer Survey is open! Take survey.

Questions tagged [0x]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Is there a Ganache docker with 0x v4 on it? Or is Hardhat with a fork of Ethereum mainnet 0x a viable option?

Docker hub hosts a docker image with the Ganache Ethereum node running 0x contracts. But I need to use Version 4 of 0x, with the new NFT support. Also, I read in the documentation that Hardhat with a ...
user avatar
1 vote
1 answer
13 views

How can i foward funds swaped from 0x api quotes in the same transaction

ideally i will like to add more logic (like fowarding funds or fees) to the quote.data before letting a user send the transaction to the blockchain.
user avatar
  • 11
0 votes
1 answer
17 views

0x Orderbook Explained

I'm trying to query the USDC/WETH orderbook for the best bid and ask. However, I don't think the response data makes much sense. There is a makerAmount and takerAmount. Does this mean that to interact ...
user avatar
0 votes
0 answers
16 views

0x fillQuote fails on mainnet fork. i am sending a delegate call (i want to save transaction context) to the 0x proxy contract but transactions fail

function fillQuote( // The `sellTokenAddress` field from the API response. IERC20 sellToken, // The `buyTokenAddress` field from the API response. IERC20 buyToken, // The `...
user avatar
  • 11
0 votes
1 answer
9 views

importing qs to a html/javascript page

I'm experimenting with 0x samples. I'm not a back-end dev so I'm NOT running NodeJS. I don't want to go full blown ReactJS on it so I built this html wrapper for the example 0x code for retrieving a ...
user avatar
0 votes
1 answer
17 views

Can i build an NFT marketplace on 0x api

I just saw 0x.org today it looks interesting, i am working on an NFT marketplace on Polygon, your docs looks familiar as to what i am working on. so i want to know, if i can build an NFT marketplace ...
user avatar
  • 1
0 votes
1 answer
55 views

How to implement features(e.g. ERC721OrdersFeature) into 0x proxy

I want to integrate with 0x-protocol v4 for trading ERC20 Token <-> ERC721 Token & ERC1155 Token, and I want to deploy it myself. I have deployed 0xProxy, 0x Proxy Governor, and other ...
user avatar
  • 1
0 votes
1 answer
25 views

0x api: how to set specific receiver address on quote interface?

in our project,i wanna specific a address to receive all tx tokens,but i cant find any params about this. 0xapi quote
user avatar
0 votes
1 answer
33 views

0x API showing a different price than what is shown on matcha.xyz

When I run the below it shows a price that is different from what I see on matcha. Trying to figure out how the price on matcha is derived. https://api.0x.org/swap/v1/quote?buyToken=ETH&sellToken=...
user avatar
0 votes
1 answer
17 views

Where is 0x protocol v3 document

I'm finding Reference document for 0x v3. However i can find only for 0x v4 in here(https://protocol.0x.org/en/latest/) where can i find the document for v3?
user avatar
  • 1
0 votes
1 answer
25 views

will 0x exchange proxy every refund eth?

I'm currently designing my contract to work with 0x Swap API, but not sure if I should handle the case of refund. (it's kind of tricky for me to add a fallback because i'm using the diamond proxy ...
user avatar
0 votes
1 answer
24 views

Execution of limit orders

Hey I'm thinking of creating a trading platform and wanted to utilize 0x API orderbook in order to provide limit order + depending on the possibilities automatic profit taking and stop loss ...
user avatar
0 votes
1 answer
12 views

Was 0xProject goleveldb/qunit discontinued?

I have some projects where the wasm is built on top of the 0xProject goleveldb fork. Recently one of it's dependencies 'qunit' stopped being found by pkg.go and github. Has it been discontinued?
user avatar
1 vote
1 answer
28 views

how can I build a orderbook API in our database

I read 0x project, but have some confused. I want to build a orderbooks in our database, but know seem like we just call the 0x orderbook API? that is mean the order data in your service right? I just ...
user avatar
  • 13
0 votes
1 answer
70 views

Why is the price of my token wrong on Ox Protocol than everywhere else?

maybe you can help me. If this is not the correct avenue for customer service please direct me to the correct place. I made a conversion within Coinbase Wallet and there is an error. Their customer ...
user avatar
0 votes
1 answer
28 views

Bundle 0x Swaps

Is it possible to bundle swaps received by multiple /swap/v1/quote API requests? Is there a deployed smart contract that provides the functionality to bundle multiple swaps and maybe even take care of ...
user avatar
0 votes
0 answers
20 views

0x protocol - is there a problem overriding is ApprovedForAll to have 0x address as default? And how to to it?

I want to have less friction from the contracts that I deployed with 0x protocol. Similar to what OpenSea does https://docs.opensea.io/docs/polygon-basic-integration, I would override the method and ...
user avatar
0 votes
1 answer
42 views

Track NFT transactions on 0x by fee recipient

Is it possible to find NFT sale transactions going through 0x v4 that have fees going to a certain specific address? When I look at transaction data for the 0x v4 contract on etherscan, it just shows ...
user avatar
0 votes
1 answer
43 views

Invalid transaction key: price - Swap Transaction fails using ethers.js on Ropsten

I am trying sell ETH and buy DAI. Trying to test it on Ropsten but the transaction fails saying - invalid transaction key - price. Here is the my code let wallet = new ethers.Wallet(wallet_privateKey);...
user avatar
1 vote
2 answers
40 views

Sent to contract address

Hi I made a mistake by sending my WETH to the WETH contract address is there a way to recover my funds? I'll send proof of the transaction. ...
user avatar
  • 11
0 votes
1 answer
23 views

Tiny amount of USDT returns during swap

This transaction is swapped USDT -> USDC. Also in this tx, I see a transfer of 0.000002 USDT to the user's address. The question is what this transfer means and why it happens?
user avatar
0 votes
0 answers
40 views

Swap call to 0x contract failing

I am trying to build an arbitrage bot (learning) using AAVE flashloans, 0x and 1 Inch exchange swaps. While my flashloan call is successful but swap call to 0x exchange fails and revert '...
user avatar
  • 1
0 votes
1 answer
24 views

0xAPI is failing to return best price for a token pair versus Sushiswap

We are using the 0xAPI to search price quotes on different exchanges for one of our native index tokens at Piedao (PLAY - 0x33e18a092a93ff21aD04746c7Da12e35D34DC7C4) vs. ETH. The current quote for 1 ...
user avatar
  • 11
0 votes
1 answer
18 views

Fetching price feed for new tokens through api

i come across a scenario that a we will be enabling people to mint their ERC20 and on one page we will show them the total price in USD for their ERC20. a few question in my mind, if uniswap is the ...
user avatar
0 votes
1 answer
30 views

Mixed Property-Based Order 0x V3

I’ve managed to deploy my own broker and validator contract on Rinkeby, and the orders execute fine and only allow the target properties to be filled. However, I’ve been trying to mix a brokered asset ...
user avatar
  • 1
0 votes
1 answer
16 views

0x API not using slippage for orders that only provide a buyAmount

Does the 0x API correctly determine a sellAmount when given a buyAmount and a specific slippage? In the documentation is says the following about the slippage parameter (Optional) The maximum ...
user avatar
  • 111
1 vote
2 answers
22 views

0x API Help: Is this bandwith consumption normal for 0x api?

thanks for stopping by my question. I'm implementing a bot that uses the /quote endpoint of 0x API to check some trading prices. The 0x application is dockerized, together with postgreSQL and redis, ...
user avatar
  • 21
0 votes
1 answer
28 views

Setup smart contract to enable bid negotiate without cancelling current listing order

anyone know if there is a way to setup a smart contract to enable negotiating an NFT bid without cancelling and creating a new listing each time? Example: I set an NFT for sale for 0.8 ETH, someone ...
user avatar
0 votes
1 answer
33 views

0x Protocol - Can I use for selling an NFT and get back an ERC-20 token example BUSD on BSC?

I'm using 0x Protocol for my project. And I want to use BUSD as asset that taker must pay to maker. In 0x's document describes we can use native token BNB or WBNB, but not clear about if we can use ...
user avatar
0 votes
1 answer
62 views

How to deploy ERC721OrdersFeature (0x v4) for trade ERC20 - ERC721 on testnet

I want to integrate with 0x-protocol v4 for trading ERC20 Token <-> ERC721 Token, I think ERC721OrdersFeature can help, how to deploy ERC721OrdersFeature smartcontract to BSC testnet?
user avatar
0 votes
1 answer
27 views

0x Api Call to get prices in DAI

I am an absulute beginner, I'm sure some of you can help me here. When I send an API call in Python as follows: baseurl = "https://polygon.api.0x.org/swap/v1/prices?sellToken=WETH" r = ...
user avatar
  • 1
0 votes
1 answer
29 views

0x API - "PancakeSwapFeature/UnderBought"?

{"code":105,"reason":"Error","values":{"message":"PancakeSwapFeature/UnderBought"}} I was trying to swap ETH to BUSD via direct swap on BSC ...
user avatar
  • 101
0 votes
1 answer
38 views

How to do swap using encoded function call

I will try to describe my problem as clearly as possible so that I can get feedback on whether I am going in the right direction for resolution. I'm running tests on mainnet fork trying to implement a ...
user avatar
0 votes
1 answer
75 views

0x Protocol ERC721Order - Trying to execute any transaction to fill or check status of signed order fails

I'm trying to interact with a signed order created using the ERC721Order from @0x/protocol-utils. Order created and signed using the following docs: https://docs.0x.org/nft-support/guides/signing-...
user avatar
0 votes
0 answers
11 views

0xLaunchKit Ngnix package install error on ubuntu

my Terminal screen givin error like this when ı tried to get live on ubuntu oracle cloud server.
user avatar
  • 1
0 votes
1 answer
20 views

0x: Query Liquidity Pools for APR

Is there a way to use 0x to query LPs to find out their current APR? I'm trying to build a small reporting tool and would love to query LPs on these DEXes, but can't seem to figure out how. I tried ...
user avatar
0 votes
1 answer
31 views

Asking for a quote for non-ETH tokens leads to gas limit error

I'm learning how to work with 0x quotes and I still couldn't make a successful request. Here is what I'm trying to send https://api.0x.org/swap/v1/quote?buyToken=DAI&sellToken=WETH&sellAmount=...
user avatar
  • 1
0 votes
1 answer
81 views

Correct usage of expiry for NFT Swap SDK v4

Creating a NFT trade order where the maker is selling a single 721 NFT, and the taker (same address as maker) is offering to buy it for eth. No matter what I set the expiry value to, the transactions ...
user avatar
0 votes
1 answer
69 views

0x Price/Quote API doesn't handle different token decimals correctly

I am using the 0x Price and Quote API for my project and encountered the following Problem which could be a bug in the API. Example request: https://api.0x.org/swap/v1/quote?sellToken=...
user avatar
0 votes
1 answer
42 views

Support for EIP1271 smart contract signatures for 0x nft swaps?

Does 0x's nft swapping protocol plan on supporting eip 1271 smart contract signatures for the new nft swap protocol? We want to use gnosis safe (multisig) and other smart contract wallet (argent) to ...
user avatar
0 votes
0 answers
30 views

Network Timeout with Public RPC connections

I have problems when trying to get a price with 0x api local instance. My env is: CHAIN_ID=250 ETHEREUM_RPC_URL=https://rpc.ftm.tools My request is: http://127.0.0.1:3000/swap/v1/price?sellToken=...
user avatar
  • 1
0 votes
0 answers
18 views

0x Protocol Limit order throwing invalidation error 1001

Error: ERROR(status code 400): { "code": 100, "reason": "Validation Failed", "validationErrors": [ { "field": "", &...
user avatar
0 votes
2 answers
95 views

LimitOrders 0x v4 Server Error 500

I'm trying to get limit orders working using the 0x reference: https://docs.0x.org/market-makers/guides/0x-v4-rfq-orders-code-examples looking to swap some WETH for some ZRX via placing a limit order. ...
user avatar
0 votes
1 answer
43 views

0x-API OrderbookService tests fail

I managed to start the 0x-api locally (thanks to this and this), however, I am having trouble to run yarn test. I am particularly interested in the OrderbookService tests (e.g., how to post an order). ...
user avatar
0 votes
1 answer
32 views

Fetching token prices using Swap/v1/quote API responds wrong price on avalanche chain?

Using the following query and conversion for bsc and eth respectively works: https://bsc.api.0x.org/swap/v1/quote?buyToken=${contractAddress}&sellToken=WBNB&sellAmount=10000000000000000000 ...
user avatar
0 votes
0 answers
73 views

0x / web3.js - Overflow when swapping direct

I'm getting quote from 0x on fantomchain w/o takeraddress. I then submit direct swap transaction by 2x'ing gas price and 3x'ing gas.. and i'm getting this strange error: const sellToken = "DAI&...
user avatar
  • 101
0 votes
2 answers
46 views

0x-API: parsing bytecode

I'm using the 0x API on my smart contract. Is there any available API/tool to parse the bytecode from the 0x API ? That would enhance my productivity.
user avatar
  • 1
0 votes
0 answers
37 views

DodoEX pools not available via 0x API

We have created two one-sided Dodo V2 pools (ethereum/polygon) as part of initial treasury supply and kickoff and they are not showing up in 0x API for swapping. There should be sufficient buyToken ...
user avatar
0 votes
0 answers
44 views

How many tokens does the API grant access to in 0x

Our dev team is only able to retrieve a small portion of the available tokens. We have told them that the 0x API gives access to nearly any token, not just the small percentage that the /token call ...
user avatar
1 vote
1 answer
111 views

0x Bad request error

since a few days, I am receiving a Bad Request error (status code 400) when trying to sign and submit an order: ERROR(status code 400): { "code": 100, "reason": "...
user avatar

1
2 3 4 5