parameters: (self)
return_statement: return legs
docstring: Returns all legs (class OrderLeg) of order.
docstring_summary: Returns all legs (class OrderLeg) of order.
docstring_tokens: Returns all legs ( class OrderLeg ) of order .
function: def get_legs(self):
          """Returns all legs (class OrderLeg) of order."""
          p = POINTER(_OrderLeg_C)()
          n = c_size_t()
          clib.call('OrderTicket_GetLegs_ABI', _REF(self._obj), _REF(p), _REF(n))
          legs = []
          for i in range(n.value):
              l = OrderLeg._init_from_cproxy(p[i])
              legs.append(l)
          clib.free_order_leg_buffer(p)
          return legs
function_tokens: def get_legs ( self ) : p = POINTER ( _OrderLeg_C ) ( ) n = c_size_t ( ) clib . call ( 'OrderTicket_GetLegs_ABI' , _REF ( self . _obj ) , _REF ( p ) , _REF ( n ) ) legs = [ ] for i in range ( n . value ) : l = OrderLeg . _init_from_cproxy ( p [ i ] ) legs . append ( l ) clib . free_order_leg_buffer ( p ) return legs