Skip to content

Commit

Permalink
update stop-limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth2207 committed Jul 8, 2024
1 parent 0072107 commit 3c9a5f0
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions strategies/stop-limit.rain
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
# Limit Order Strategy
# 5 buy and sell targets
# Each target you set buy price and amount and sell price and amount
# Target Network: Base
# Quote (Input / Incoming): USDC or WLTH
# Base (Output / Outgoing): WLTH or USDC
# Token contract: https://basescan.org/address/0x99b2B1A2aDB02B38222ADcD057783D7e5D1FCC7D
# Token github: NA
# Liquidity protocol: Uniswap V3
# Liquidity pool address: https://www.dextools.io/app/en/base/pair-explorer/0x1536ee1506e24e5a36be99c73136cd82907a902e?t=1717921711270
# Liquidity pool fee: 0.3%
# Stop Limit Orders.
#
# The stop price dictates the price whether the order is triggered, then the limit price dictates the price at which the order is filled.
# Once the market price reaches below the stop price, the order becomes a limit order and then the limit price dictates the price at which the order is filled.
# https://www.investopedia.com/terms/s/stop-limitorder.asp

networks:
base-community:
Expand Down Expand Up @@ -69,7 +63,7 @@ scenarios:
orderbook-subparser: 0x8D96ea3EF24D7123882c51CE4325b89bc0d63f9e

# Uniswap V3 factory addresses and init code
uniswap-v3-factory: '[uniswap-v3-factory]'
uniswap-v3-factory: 0x33128a8fC17869897dcE68Ed026d694621f6FDfD
uniswap-v3-init-code: '[uniswap-v3-init-code]'

# Uniswap V3 pool fee
Expand Down Expand Up @@ -255,7 +249,7 @@ deployments:
using-words-from uniswap-words orderbook-subparser

orcale-price: call<'get-oracle-price>(),
:ensure<'ensure-stop-loss>(orcale-price),
:call<'ensure-stop-loss>(orcale-price),
final-amount
final-ratio: call<'get-ratio-amount>(),
:call<'plottables>(final-amount final-ratio);
Expand Down

0 comments on commit 3c9a5f0

Please sign in to comment.