Permalink
Browse files

initial approach to retrieving lists of orders

  • Loading branch information...
1 parent 88d33d6 commit 3b51bd322cf174e15828e828b06c24925d045f8a Steven Gravell committed Sep 6, 2011
Showing with 95 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +94 −0 seto.piqi
View
@@ -4,3 +4,4 @@ build
*_pb2.py
*.pyc
*.proto
+seto_piqi.*
View
@@ -138,6 +138,16 @@
.type order-cancel-rejected
.optional
]
+ .field [
+ .name orders-for-market-request
+ .type orders-for-market-request
+ .optional
+ ]
+ .field [
+ .name orders-for-market
+ .type orders-for-market
+ .optional
+ ]
]
.enum [
@@ -215,6 +225,14 @@
.name order-cancel-rejected
.proto-name "PAYLOAD_ORDER_CANCEL_REJECTED"
]
+ .option [
+ .name orders-for-market-request
+ .proto-name "PAYLOAD_ORDERS_FOR_MARKET_REQUEST"
+ ]
+ .option [
+ .name orders-for-market
+ .proto-name "PAYLOAD_ORDERS_FOR_MARKET"
+ ]
]
.record [
@@ -1105,3 +1123,79 @@
.proto-name "EVENT_CATEGORY_GENERIC"
]
]
+
+.record [
+ .name orders-for-market-request
+ .field [
+ .name market
+ .type market
+ ]
+]
+
+.record [
+ .name orders-for-market
+ .field [
+ .name market
+ .type market
+ ]
+ .field [
+ .name price-type
+ .type price-type
+ ]
+ .field [
+ .name contracts
+ .type orders-for-contract
+ .repeated
+ ]
+]
+
+.record [
+ .name orders-for-contract
+ .field [
+ .name contract
+ .type contract
+ ]
+ .field [
+ .name bids
+ .type orders-for-price
+ .repeated
+ ]
+ .field [
+ .name offers
+ .type orders-for-price
+ .repeated
+ ]
+]
+
+.record [
+ .name orders-for-price
+ .field [
+ .name price
+ .type uint32
+ ]
+ .field [
+ .name order-state
+ .type order-state
+ ]
+]
+
+.record [
+ .name order-state
+ .proto-name "OrderState"
+ .field [
+ .name order
+ .type order
+ ]
+ .field [
+ .name type
+ .type order-create-type
+ ]
+ .field [
+ .name quantity-type
+ .type quantity-type
+ ]
+ .field [
+ .name quantity
+ .type uint32
+ ]
+]

0 comments on commit 3b51bd3

Please sign in to comment.