# API Variable Type Incorrect for ReplaceOrderRequest Class

**URL:** <https://forum.alpaca.markets/t/api-variable-type-incorrect-for-replaceorderrequest-class/11991>\
**Category:** App-Integration\
**Created:** [March 11, 2023, 7:32am UTC](https://forum.alpaca.markets/t/api-variable-type-incorrect-for-replaceorderrequest-class/11991 "2023-03-11T07:32:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Koranda](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/nick_koranda/32/5197_2.png) [@Nick\_Koranda](https://forum.alpaca.markets/u/Nick_Koranda)\
**Post date:** [March 11, 2023, 7:32am UTC](https://forum.alpaca.markets/t/api-variable-type-incorrect-for-replaceorderrequest-class/11991/1 "2023-03-11T07:32:23Z")

</div>

The ReplaceOrderRequest Class in the alpaca-py library has a variable ‘qty’ that is an int, when it should be a float.

I can see this when I am trading crypto and send an order update for a fractional value such as 1.1 or 0.7. It converts the value to an int when it should not.

In the code:

```
Attributes:
    qty (Optional[int]): Number of shares to trade

```
