Questions tagged [trading]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
366 views

How to access or calculate slippage from Uniswap-V3 trades on-chain?

I know we can extract swapping information on a Uniswap V3 LP pool (for example - https://info.uniswap.org/#/polygon/pools/0xefa98fdf168f372e5e9e9b910fcdfd65856f3986). Is there a way to find out the ...
KubiK888's user avatar
  • 103
0 votes
1 answer
32 views

After registry of both the consumer and prosumer properly, when I try to do the transaction, the transaction is reverted

//SPDX-License-Identifier:GPL-3.0 pragma solidity 0.8.13; contract trade{ constructor() { owner = msg. sender; } address owner; modifier onlyOwner { require(msg.sender == ...
Shekh Shihab Uddin's user avatar
0 votes
0 answers
22 views

How to simulate and minimize the price impact by splitting a large purchase into smaller chunks and over a number of days?

Let's say a trading firm wants to buy $5 MIL worth of SYN (https://www.coingecko.com/en/coins/synapse) in Uniswap V3 pools. SYN currently has a market cap of $135 MIL. I know how to calculate the ...
KubiK888's user avatar
  • 103
0 votes
0 answers
28 views

Code which copy tradeers in pankakeswap doesnt work

So Im trying to use tihs code to copy traders in pancakeswap. But when the code achive the line (how i think) let decodedData = iface.parseTransaction({ data: txInfo.data }) code doesnt do bet like a ...
ra1n89's user avatar
  • 129
0 votes
1 answer
77 views

I renounced ownership but didn’t put trading as true

I renounced ownership but didn’t put trading as true .. it is a multi owner contract but for some reason I cannot enable trading yet can call every other function .. how can I remove lp now ? https://...
James Vine's user avatar
1 vote
0 answers
113 views

Gas estimation errored. Error: Transaction reverted without a reason string

Im building a trading bot with solidity, uniswap, sushiswap and dydx for the flashloans, when i execute the executeTrade function i get this error: Gas estimation errored with the following message (...
Shadq's user avatar
  • 83
0 votes
0 answers
11 views

Pinescript Tradingview Error

I've been trying to write a pinescript code that uses divergences on MACD, RSI and CCI and bounce from oversold region on RSI and CCI to signal a buy, I came up with the below code but I keep running ...
DATGUY03's user avatar
0 votes
0 answers
10 views

How to withdra goerlieth from metamask? [duplicate]

Can I withdraw goerliETH TO BINANCE OR What is the use of GoerliETH IHAVE 0.17700($276)GoerliETH
Krishna hn's user avatar
1 vote
1 answer
194 views

How multi-hop bots finds the best way?

I have seen many bots perform multi-hop swaps to get the best arbitrage opportunity. So how do they find a such best path & exchange for their multi-hop swaps which gives the best returns? For eg ...
Rishabh Raghwendra's user avatar
1 vote
0 answers
20 views

Is this the correct way to make an ERC-20 backed by other coins?

I'm new to smart contract development and wanted to make a coin that functions like an index for my favorite coins. I'm new to smart contract development and was wondering how I could do this such ...
J. Doe's user avatar
  • 95
1 vote
2 answers
330 views

Liquidity locking and ETH loose

When you provide liquidity to a liquidity pool, you add 2 different tokens and you get LP Token (liquidity pool tokens). You can recover your 2 tokens amount when you give back your LP Tokens, ...
Alexander Herranz's user avatar
0 votes
1 answer
395 views

Is there a grid trading option for Ethereum DEX'es like uniswap and sushiswap?

Currently DEX'es like uniswap and sushiswap can only do basic swap orders, but is there a service or way to do grid trading using these types of DEX'es? Or is there another L2 that can do this? ...
Patoshi パトシ's user avatar
1 vote
1 answer
41 views

Why are Ether gas fees lower during the weekends?

Why are gas fees lower over the weekend (Saturday, Sunday)? This question is not exactly a coding problem but would help me understand a few things conceptually. My observation is that the traded ...
Konstantin Grigorov's user avatar
1 vote
1 answer
1k views

How pancakeswap website find a multi-hop path to trade a coin

I publish tokenA I add liquidity to tokenA/usdt I then want to use my "cake" to get tokenA Pancakeswap website discover there is no liquidity cake->tokenA, it then could very ...
Aron's user avatar
  • 33
1 vote
1 answer
1k views

Does my token approval for trading on Uniswap expire after a certain time?

I'm doing some trades on Uniswap and I approved token trading on one of the tokens. But I'm getting another approval request. Do these approvals expire after a certain time? It doesnt make sense to ...
Patoshi パトシ's user avatar
0 votes
1 answer
70 views

Cannot approve transaction on Matcha [closed]

After I hit approve, this immediately showed up. I tried several times, reset, etc. still didn't work
Vince's user avatar
  • 1
0 votes
1 answer
65 views

how to track swaps through affiliateAddress or feeRecipient that are done through 0x api?

I found in the documentation that affiliateAddress can be used to track swaps that are sent to the 0x api, but how to filter this data based on affiliateAddress, I haven't found any way to track the ...
Ikram Ansari's user avatar
0 votes
2 answers
113 views

Can I trade ETH from a private blockchain on to a public blockchain?

say I buy a certain amount of ETH per private blockchain and move my assets to my ETH wallet. Do I then have the option to trade those (private) ETH on a public blockchain, using the same wallet as ...
Saphire's user avatar
  • 111
0 votes
1 answer
57 views

How to introduce erc20 token to coinbase and give it its initial value

How can I add my newly deployed token to coinbase to put it for trading, how can I associate to it a certain value in dollars? Is it something similar to the liquidity pools of the AMMs where you ...
Kaki Master Of Time's user avatar