ml-ai-agents-py/agents/trading_on_gmx.md
2023-04-06 10:02:24 -07:00

1.4 KiB

basics on trading, illustrated on gmx


price chart

  • the current price is the price of the most recent trade.
  • it varies on whether that trade was a buy or a sell.
  • high volume means the price movement is more reliable (consensus of a large number of market participants).
  • candlesitck chart showing open/start (O), high (h), low (low), anc close/end (c) prices for a given time window.



order book


  • the order book is made of two sides, asks (sell, offers) and bids (buy).
  • the best ask (the lowest price someone is willing to sell ) > the best bid (the highest price someone is willing to buy).
  • the difference between the best ask and the best bid is called spread.
  • market order: best price possible, right now. it takes liquidity from the market and usually has higher fees.
  • limit order (passive order): specify the price and qty you are willing to buy or sell at, and then wait for the match.
  • stop orders: allow you to set a maximum price for your market orders.


resources