# Any premade way to distinguish between Source dashboard trades vs access\_key

**URL:** <https://forum.alpaca.markets/t/any-premade-way-to-distinguish-between-source-dashboard-trades-vs-access-key/14437>\
**Category:** Getting Started with Alpaca\
**Created:** [June 12, 2024, 11:21pm UTC](https://forum.alpaca.markets/t/any-premade-way-to-distinguish-between-source-dashboard-trades-vs-access-key/14437 "2024-06-12T23:21:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![grathan](https://avatars.discourse-cdn.com/v4/letter/g/ed8c4c/32.png) [@grathan](https://forum.alpaca.markets/u/grathan)\
**Post date:** [June 12, 2024, 11:21pm UTC](https://forum.alpaca.markets/t/any-premade-way-to-distinguish-between-source-dashboard-trades-vs-access-key/14437/1 "2024-06-12T23:21:01Z")

</div>

I know i might be able to assume a blank custom Client Order ID might be an easy identifier in code? Curious if there was another way, like kinda how the old dashboard knows which method I traded with.

---

<div class="post-metadata">

**Author:** ![Dan\_Whitnable\_Alpaca](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/dan_whitnable_alpaca/32/1658_2.png) [@Dan\_Whitnable\_Alpaca](https://forum.alpaca.markets/u/Dan_Whitnable_Alpaca)\
**Post date:** [June 13, 2024, 1:52am UTC](https://forum.alpaca.markets/t/any-premade-way-to-distinguish-between-source-dashboard-trades-vs-access-key/14437/2 "2024-06-13T01:52:45Z")

</div>

@grathan The order object has info on ‘source’. Below are the attributes when fetching an order

> ‘id’, ‘client\_order\_id’, ‘created\_at’, ‘updated\_at’, ‘submitted\_at’,  
> ‘filled\_at’, ‘expired\_at’, ‘canceled\_at’, ‘failed\_at’, ‘replaced\_at’,  
> ‘replaced\_by’, ‘replaces’, ‘asset\_id’, ‘symbol’, ‘asset\_class’,  
> ‘notional’, ‘qty’, ‘filled\_qty’, ‘filled\_avg\_price’, ‘order\_class’,  
> ‘order\_type’, ‘type’, ‘side’, ‘time\_in\_force’, ‘limit\_price’,  
> ‘stop\_price’, ‘status’, ‘extended\_hours’, ‘legs’, ‘trail\_percent’,  
> ‘trail\_price’, ‘hwm’, ‘subtag’, ‘source’

That last attribute `source` indicates how the order was placed. If it is ‘access\_key’ then the order was placed via the API, if a long UUID alpha string (which looks like an order number) the order was placed via an OAuth app (eg TradingView) and that is the app client ID, if it is blank the order was placed via the dashboard. On rare occasion there may be other values which indicate the order was placed internally by Alpaca (eg to liquidate a position for a margin call).

So, simply look at `order.source` to determine how it was placed.

---

<div class="post-metadata">

**Author:** ![grathan](https://avatars.discourse-cdn.com/v4/letter/g/ed8c4c/32.png) [@grathan](https://forum.alpaca.markets/u/grathan)\
**Post date:** [June 13, 2024, 10:07am UTC](https://forum.alpaca.markets/t/any-premade-way-to-distinguish-between-source-dashboard-trades-vs-access-key/14437/3 "2024-06-13T10:07:56Z")

</div>

Hey thanks, do you know if there is anything for the C# wrapper for IOrder by chance? Or if the info you have there is attainable by REST?

---

<div class="post-metadata">

**Author:** ![Dan\_Whitnable\_Alpaca](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/dan_whitnable_alpaca/32/1658_2.png) [@Dan\_Whitnable\_Alpaca](https://forum.alpaca.markets/u/Dan_Whitnable_Alpaca)\
**Post date:** [June 13, 2024, 12:41pm UTC](https://forum.alpaca.markets/t/any-premade-way-to-distinguish-between-source-dashboard-trades-vs-access-key/14437/4 "2024-06-13T12:41:55Z")

</div>

@grathan I’m not very familiar with the C# SDK, but there should be methods to fetch both all orders and a single order. Both would return an order object. Order objects have a `source` attribute. Now that said, the C# SDK my somehow mask or not implement that attribute?

It’s definitely in the REST response. You can also see it on the orders page in the UI dashboard as shown below

 ![image](https://us1.discourse-cdn.com/flex020/uploads/alp/original/2X/4/48fe55d8f3260a1028a6ad6caad59c707b6816b4.png)
