API
Rubicon Classic
Orders
List Orders

The maximum number of values returned in a single call is 1000.

Any parameter filter must be lowercased, including addresses (0xDeAd -> 0xdead)

List Open Orders by Maker

{
offers( where: { open : true, maker: "0xinput_address" } , first: 1000) {
    # the asset the offer is selling 
    pay_gem
    # the amount of the pay_gem that is being sold (not converted)
    pay_amt
    # the amount of the offer that has been paid out (not converted)
    paid_amt
    # the asset the offer is buying 
    buy_gem
    # the amount of the buy_gem that is being sold (not converted)
    buy_amt
    # the amount of the offer that has been bought (not converted)
    bought_amt
    # the offer owner (the address that controls the offer)
    maker { id }
  }
}

List Open Orders by Pair

{
asks: offers(
    first: 1000
    orderBy: price
    orderDirection: desc
    where: {pay_gem: "0xasset", buy_gem: "0xquote", open: true}
) {
    # the id of the offer
    id
    # the asset the offer is selling
    pay_gem
    # the asset the offer is buying 
    buy_gem
    # the amount of the asset being sold (not converted)
    pay_amt
    # the amount of the asset being bought (not converted)
    buy_amt
    # the amount of the asset sold (not converted)
    paid_amt
    # the amount of the asset bought (not converted)
    bought_amt
  }
bids: offers(
    first: 1000
    orderBy: price
    orderDirection: desc
    where: {pay_gem: "0xquote", buy_gem: "0xasset", open: true}
) {
    # the id of the offer
    id
    # the asset the offer is selling
    pay_gem
    # the asset the offer is buying 
    buy_gem
    # the amount of the asset being sold (not converted)
    pay_amt
    # the amount of the asset being bought (not converted)
    buy_amt
    # the amount of the asset sold (not converted)
    paid_amt
    # the amount of the asset bought (not converted)
    bought_amt
  } 
}