As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [0x]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
98 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=...
user100446's user avatar
0 votes
1 answer
54 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?
rick's user avatar
  • 1
0 votes
1 answer
77 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 ...
Anton Cheng's user avatar
0 votes
1 answer
178 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 ...
user9302's user avatar
0 votes
1 answer
17 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?
Samufacanha's user avatar
1 vote
1 answer
150 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 ...
Junshu's user avatar
  • 13
0 votes
1 answer
100 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 ...
Anthony Santigate's user avatar
0 votes
1 answer
57 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 ...
Philipp Schweiger's user avatar
0 votes
1 answer
90 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 ...
Jeffrey's user avatar
1 vote
2 answers
576 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);...
HouseHunt's user avatar
1 vote
2 answers
157 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. ...
Bleu's user avatar
  • 11
0 votes
1 answer
46 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?
Bogdan Poznyak's user avatar
0 votes
1 answer
55 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 ...
jzia's user avatar
  • 11
0 votes
1 answer
83 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 ...
Dixon W's user avatar
0 votes
1 answer
37 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 ...
0x113f's user avatar
  • 1
0 votes
1 answer
49 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 ...
Griffin's user avatar
  • 111
1 vote
2 answers
41 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, ...
Pablo's user avatar
  • 21
0 votes
1 answer
46 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 ...
jinsley8's user avatar
0 votes
2 answers
82 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 ...
Tho Bui Ngoc's user avatar
0 votes
1 answer
118 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?
Quoc-Bao Tran's user avatar
0 votes
1 answer
118 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 = ...
Lukas's user avatar
  • 1
0 votes
1 answer
88 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 ...
TaeWoo's user avatar
  • 101
0 votes
1 answer
275 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 ...
Yan Luiz's user avatar
0 votes
1 answer
198 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-...
Eliecer Chicott's user avatar
0 votes
1 answer
56 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 ...
Luke Cassady-Dorion's user avatar
0 votes
1 answer
129 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=...
mark's user avatar
  • 1
0 votes
1 answer
166 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 ...
abigpotostew's user avatar
0 votes
1 answer
114 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=...
Philipp Schweiger's user avatar
0 votes
1 answer
184 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 ...
David Tilman's user avatar
0 votes
2 answers
135 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. ...
ianmere's user avatar
0 votes
1 answer
53 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). ...
Walodja1987's user avatar
0 votes
1 answer
124 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 ...
Mike V.'s user avatar
0 votes
0 answers
149 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&...
TaeWoo's user avatar
  • 101
0 votes
2 answers
156 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.
Anion's user avatar
  • 1
0 votes
0 answers
49 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 ...
Jeremy Crane's user avatar
1 vote
1 answer
153 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": "...
Walodja1987's user avatar
0 votes
1 answer
61 views

Getting transaction reverted on ropsten

Im trying to exchange ETH to DAI, but Im getting an error : https://ropsten.etherscan.io/tx/0x19d2c3e8cd6bb1d4fa2da99f0a47de1c616b4d091f37d15f0a705ac784edb65e What am I doing wrong ? I tried to ...
user387171's user avatar
0 votes
1 answer
120 views

How to get each exchange swap price using 0x api

I am able to call the 0x /swap/v1/quote? endpoint without any issue (I know that is not hard). But passing in multiple exchanges, I thought, would return the swap prices on those exchanges. But it ...
TJ Sherrill's user avatar
0 votes
1 answer
34 views

Fees are incorrect in 0x Instant project

Im trying to get 0x API fees but I dont understand how matcha.xyz does it. I tried looking at 0x Instant, but the fees are too low and same for me when I use their API this is what Im getting (136000 ...
user387171's user avatar
0 votes
2 answers
117 views

0x API - direct swap failing on Ropsten

Direct swap using JS template from the starter guide seems to be failing const sellToken = "DAI"; const buyToken = "USDC"; /* checking allowance Ropsten DAI address = ...
TaeWoo's user avatar
  • 101
0 votes
1 answer
27 views

Are there token behaviours that are not supported by the 0x protocol? [closed]

Sometimes swapping using 0x fail, are there certain types of tokens that are not supported? I am thinking in particular of tokens that take fees on each transfer/swap. For example the Safemoon token.
Solerus's user avatar
  • 119
0 votes
1 answer
130 views

ERC721Order Orderbook in 0x API

I'm trying to post a signed ERC721Order to the 0X Api orderbook deployed on Ropsten using the 0x protocol utils libraries (endpoint: https://ropsten.api.0x.org/orderbook/v1/order). Unfortunately I ...
Michele Lauriola's user avatar
0 votes
2 answers
101 views

verifying a signed nft swap order

I am using swap sdk to verify nft swap order in polygon chain. const pKey = new ethers.Wallet.createRandom(); const signer = new ethers.Wallet(pKey, provider); const nftSwapSdk = new NftSwapV3(...
Abraham George's user avatar
0 votes
1 answer
150 views

How to extend the 0x v4 NFT protocol

Hello guys I am having a really hard time figuring out how to extend the protocol to add my validations prior to execute a filling order. I am on 0x v4 NFT, I figured out from the docs that adding the ...
Cryptosauro's user avatar
0 votes
2 answers
69 views

Getting this error when calling nftswapv4.fillSignedOrder

Cannot use 'in' operator to search for 'erc1155Token' in undefined. maybe the order isn't posting? Here's the code I'm using to post it: await nftSdk.postOrder(signedOrder, chainId); If anyone has run ...
Thad H's user avatar
  • 1
0 votes
1 answer
25 views

Adding 0x api to a wallet andriod, apple OS, chrome and desktop wallet

I have a few questions I hope somebody could clarify for me. Is it possible to add the 0x API to a digital crypto wallet? if so what is the requirement for the underlying system? Does it cost ...
Frederik's user avatar
0 votes
1 answer
99 views

0x-api backend running without swap service

I have to use the '/swap/v1/quote' on Rinkeby testnet but currently, the 0x-API are not supported by default for Rinkeby as mentioned in the documentation. so I was trying to run the backend locally ...
chakshu jain's user avatar
0 votes
1 answer
48 views

0x Overbuying buyToken when setting slippagePercentage > 0

Based on the documentation here: https://0x.org/docs/api#request-1, I expected the 0xApi to obtain the exact amount of buyToken specified in the request, while applying the "slippageTolerance&...
Chris's user avatar
  • 439
0 votes
0 answers
159 views

0x API - FillQuote works on USDC=> DAI, but not DAI=>USDC

I'm trying to swap USDC to/from DAI. USDC to DAI swap works fine, but the revers ALWAYS fails The smart contract im using is EXACTLY simpletokenswap.sol, the only modification I made was that uint(-1) ...
TaeWoo's user avatar
  • 101
0 votes
1 answer
262 views

0x api - swapping ERC20 with ETH/WETH fails on Ropsten

Currently using IDENTICAL example from 0x starter guide. Steps taken deployed contract onto ropsten network Deposited test eth to the smart contract. Then tried swapping to some ERC20's successfully:...
TaeWoo's user avatar
  • 101