Questions tagged [0x]

The tag has no usage guidance.

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

Integration of 0X (payments and router)

Two questions for the team of 0x.org Can we connect our own router to your system? (same as apeswap and cafeswap did) Can we somehow take payment for the transactions in our coin, not in yours? (...
0
votes
0answers
14 views

How to open Geth for Docker connection?

I'm trying to install 0x-api (https://github.com/0xProject/0x-api). When Im using Infura JSON RPC URL as a provider in .env, API works great. One of the Docker containers uses this ETHEREUM_RPC_URL. I ...
0
votes
0answers
19 views

Can not install @0x/asset-swapper with NPM / Yarn. Ends up in error "Error: spawn cargo ENOENT"

When trying to install asset-swapper repo, either via NPM or Yarn, I end up on: "response status 404 Not Found on https://github.com/0xProject/fast-abi/releases/download/0.0.2/node-v83-win32-x64....
1
vote
1answer
17 views

0x API swap destination address

Looks like there is no way to specify destination address for the swap function, is it so? Is there a way such that the swapped to tokens will be sent to another address, but not the original sender's?...
0
votes
0answers
15 views

0x Kovan API returning 503 responses?

We have been using the Kovan 0x endpoint (https://kovan.api.0x.org/swap/v1) for a few months without trouble, but just started receiving HTTP 503 responses back today. Is the endpoint still supported ...
0
votes
1answer
52 views

Start API Network timeout

I am trying to start local 0x-api(https://github.com/0xProject/0x-api). I first tried starting the api setting Infura Rpc Url in .env . Everything worked great. But I want to use my Local Ethereum ...
0
votes
2answers
25 views

Failed to swap BEP20 > BNB, WalletExecuteDelegateError

I try to use 0x Swap rest API to swap a token. buyToken=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82 sellToken=0x07515f6d56879040b02c4d355df62ec5aede4c7e But i got WalletExecuteDelegateCallFailedError, ...
0
votes
0answers
31 views

BEP20: transfer amount exceeds allowance

I want to swap bep20 tokens like BUSD - BNB and BNB - BUSD, i already approved tokens for the swapping but while i try to swap BNB - BUSD it's throw error like BEP20: transfer amount exceeds allowance ...
0
votes
1answer
47 views

I am trying to setup the local 0x-api. (https://github.com/0xProject/0x-api). However I am encountering an error which doesn’t look handled?

When tried to run a local version 0x-api, an internal server error is encountered. How do we overcome this to complete the local setup? Error Message {"level":"info","time&...
0
votes
0answers
21 views

The remainingFillableTakerAmount of new sell order is zero on Polygon and it lasts a long time

When I sell a order successfully on Polygon, the remainingFillableTakerAmount is zero and it lasts a long time before remainingFillableTakerAmount return to normal value. Now, I can not find the ...
0
votes
0answers
10 views

Would it be possible to include vault/LP operations into the 0x exchange engine?

I am curious about the possibility to allow operations like depositing or withdrawing from vaults, or depositing funds into an LP through the 0x exchange protocol. Would it be possible to allow these &...
0
votes
1answer
25 views

Using 0x Swap can I build a system that will swap and transfer tokens between two addresses?

I'm hoping to build a system that would let me, in one transaction, transfer ETH from WalletA and receive DAI in Wallet B. Is that possible with 0x Swap or any other 0x product?
0
votes
1answer
20 views

What are the 0x testnet endpoints?

I’m trying to test the 0x REST api, and can see the endpoints for the main nets, but what about the test nets? Specifically interested in endpoints for Polygon Mumbai and Goerli
0
votes
1answer
31 views

List of tokens available to trade via Ox API (Avalanche)

I'm trying to trade TEDDY on Avalanche via 0x, when I call the tokens API curl -X 'GET' 'https://avalanche.api.0x.org/swap/v1/tokens' -H 'accept: application/json' I only get AVAX, WAVAX, and WETH, ...
0
votes
1answer
34 views

0x swap quote api - confused about all fees/costs in the different response params

I'm wanting to use the 0x swap quote API but I'm struggling to understand some of the response params. Let's say for example I'm doing an arbitration and I'm starting with 10 WETH, then I sell the ...
0
votes
1answer
26 views

How to integrate my Pullagable Liquidity Provider to 0x network?

I am thinking of building a Pullagable Liquidity Provider. How can I supply that liquidity to the 0x network? Do I need permission to integrate it so that the official 0x API can sample my PLP's data? ...
0
votes
1answer
37 views

How can I fill order from my contract by using V4 API and contract?

I'm trying to fill order from my contract by using 0x V4 API and contract on Mainnet. So far I'm guessing that I should call batchFill function in this contract. https://etherscan.io/address//...
0
votes
1answer
37 views

How to fix it? It’s about 0x API

I’m waiting online. It’s urgent
0
votes
1answer
19 views

The websokcet api on Polygon about 0x

I find only the mainnet has the websockt api, now I want to use the websocket of Polygon, but I can not find it So, only the mainnet has the websockt api?
0
votes
1answer
31 views

0x API returns invalid result

We've noticed that in one edge case the 0x API returns a weird result. We're trying to get a swap transaction for the exact same token, it works with sellAmount 0.1 BNB but fails with sellAmount of 0....
0
votes
1answer
30 views

Validation failed, creating limit order on BSC. 0x

We've tried multiple times to create a limit order (SRA) on BSC and every time receives this: {code: 100, reason: "Validation Failed", validationErrors: []} Our order: { "chainId&...
0
votes
0answers
20 views

Is there limit orders executors on Polygon?

Does the limit order close on polygon? https://polygon.api.0x.org/sra/v4/orders We've created few orders and seems nobody wants to close it.
0
votes
0answers
25 views

Server error local 0x-api

I tried to deploy local 0x-api. I ran geth on port 8546 and tested web3(I get the latest information correctly). Next, I put this ETHEREUM_RPC_URL in the field in .env, then I make the appropriate ...
0
votes
0answers
20 views

Fail to perform 0x swap on local hardhat network

setup: hardhat typechain local hardhat network (forked mainnet) ethers (hardhat) mainnet token addresses I'm using the 0x /swap/v1/quote to quote 2 tokens. async quote(buyToken: Token,sellToken: ...
1
vote
1answer
112 views

How to get a quote and swap on 0x with ethers.js

I'm trying to make a simple swap from 10 USDC to 10 USDT using 0x API quote. I'm doing this: import type { UnsignedTransaction } from '@ethersproject/transactions' import { Web3Provider } from '@...
0
votes
1answer
35 views

0x Websocket on ropsten

I try to use it on ropsten testnet with below code but i never get any message from the server. Does 0x websocket not support ropsten, or is anything wrong in my code? const socket = W3CWebSocket('wss:...
0
votes
1answer
87 views

0x exchange v3 debugging (execution reverted, more details inside)

I am trying to swap the erc721 token for erc20 using the 0x protocol which I deployed on the testnet. Using the following script to perform the swap: /** * Local, Data & Env imports * Exchange....
0
votes
0answers
38 views

InvalidSignature when broadcast a new order

I issued an ERC20 token named oETH and want to create an order based on 0x. But today when I test this process it failed. The return information is below. ERROR(status code 400): { "code": ...
0
votes
1answer
45 views

My conversion from Matic to Dock resulted in lost funds

I attempted a conversion of matic to dock transaction hash id is 0xea1abb0ac3fc257966bd5331cee6dbffd9d6a5a25a909392480a7b889e6613b9 Yet 99% of all my funds vanished
0
votes
1answer
30 views

Why does my DAI limit buy not go through for USDC?

I am trying to purchase USDC using the DAI I have in Metamask but it will not fill my order. I've given Matcha permission to access my DAI, I've paid the ETH required and now I'd like to just place a ...
0
votes
1answer
21 views

yarn Error fast-abi repository not found

I am trying to install 0x-api on windows. On running yarn, I get the error: error D:\crypto\0x-api\node_modules\fast-abi: Command failed. response status 404 Not Found on https://github.com/0xProject/...
1
vote
1answer
79 views

Swap problem with big amounts (PancakeSwap liquidity)

I try to swap some tokens and receive BUSD. When I enter the amount 100_000 for my token, API returns the normal price. But it doesnt work when I increase this amount more then 1_000_000. All ...
0
votes
1answer
46 views

How to set up local 0x API testnet on dev machine?

I set up local 0x testnet as described here-- https://0x.org/docs/guides/setting-up-a-local-0x-testnet. That works great. The document also states that the local testnet is pre-setup with dummy tokens....
0
votes
0answers
35 views

FillLimitOrder Error: Cannot read property 'then' of undefined

Can anyone help me fix the error of this code: import { BigNumber, providerUtils } from '@0x/utils'; const _0xProtocolFeeMultiplier = 70000; async function fill() { const utils = require("@0x/...
0
votes
1answer
83 views

API Key isn't UUID compliant Error

I'm trying to test local 0x-api. When I do yarn test I dont get any errors. When I do yarn start or yarn db:migrate I got an error: Error: API Key isn't UUID compliant. I've only changed the .env ...
0
votes
1answer
55 views

0x Swap Failed , brownie integration

I've one error when, swapping ERC20 -> ERC20 with 0x API, the swap failed , previoulsy was getting an error when fetching from etherscan , but manage it to work by calling contract from abi with ...
0
votes
1answer
24 views

0x v3 audit report sha1 hashes

Trying to cross reference the sha1 hashes from the audit report here: https://consensys.net/diligence/audits/2019/09/0x-v3-exchange/ And the hashes I generated from the following repo at the 3.0 ...
0
votes
1answer
30 views

cant view validation errors while using getOrderHash

i am trying to hash my order like this import { orderHashUtils } from '@0x/order-utils'; orderHashUtils.getOrderHash(order,1,"0x080bf510FCbF18b91105470639e9561022937712") but i am getting ...
1
vote
1answer
38 views

is it possible to remapping directly from etherscan

I have one contract from etherscan and I'm the settings remapping one dependency on the root path that I don't own, is it possible to override it ? "remappings": [ "@0x/contracts-...
0
votes
1answer
84 views

How to calculate price impact on 0x API

I want to calculate price impact of my order on 0x API. What is the best way to get this value? This is an example quote to swap 10 BNB to Farm token. Pancakeswap shows 5% price impact for this swap. ...
1
vote
1answer
66 views

0x API Help: Order Routing

Our project is working to integrate order routing for the trading feature on our application, and we are exploring using the 0x API for this purpose. The design of our system is such that we intend to ...
0
votes
1answer
41 views

0x OrderBook API is not storing the orders

I want to send out 2 signed orders. I am pulling the orderBook to check for the orders and have them accessible for use. This is the way I am doing the order and signing it. The issue is that I have ...
0
votes
1answer
37 views

How accurate are 0x gas estimations?

I'm trying to get gas estimations for a swap from 0x via 'swap/v1/quote' method, but fields gas and estimatedGas are wrong for the most of the cases. Is there any way to calculate it more properly? ...
0
votes
1answer
32 views

0x protocol: how to make a rfq order info fetch function call?

Hi team recently I was using the package @0x/contract-wrappers to interact with 0x but now stuck at the function call, my code: const Web3 = require('web3'); const ContractWrappers = require('@0x/...
0
votes
1answer
47 views

Failed to fill orders

I used this code to fill an order, but it did not work. Can anyone help? import { BigNumber, providerUtils } from '@0x/utils'; async function fill() { const utils = require("@0x/protocol-utils&...
0
votes
1answer
76 views

Failing to fill 0x quote

I'm trying to fill a quote that I get from the 0x API: const qs = createQueryString({ sellToken: 'TUSD', buyToken: 'WETH', sellAmount: BigInt(882693 * 10 ** 18) }); ..but the transaction ...
1
vote
0answers
36 views

Are there multiple 0x order formats?

I am currently writing an arbitrage bot which fills 0x orders but something that is confusing me is that the 0x order format is not consistent within their documentation. The order message format ...
0
votes
1answer
84 views

Member "concat" not found or not visible after argument-dependent lookup

I'm trying to concatenate a series of strings but I'm getting the following error: TypeError: Member "concat" not found or not visible after argument-dependent lookup in bytes storage ...
0
votes
0answers
83 views

Unsure why my 0x transaction failed (more details inside)

I've written a simple contract tries to swap a few 0x pairs, for doing simple arbs or other 3 way trades. However, when I get the quotes from their API https://0x.org/docs/api (in serial, which takes ...
0
votes
1answer
129 views

How to calculate the right amount of a token to use in 0x quote endpoint

I'm trying to use 0x to buy tokens with ETH. I'm following the sample at https://0x.org/docs/guides/swap-tokens-with-0x-api#swap-eth-for-1-dai. I got the token address, and the decimals. let's say ...