with Utradea and Formatting?
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
The Utradea API allows users to access financial analytics and social sentiment data for various investment opportunities. With this API, you can programmatically get insights into stock trends, market predictions, and community-driven investment analysis. When used within Pipedream, you have the ability to create automated workflows that can help you make informed investment decisions, track stock performance, or integrate with other financial tools.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
utradea: {
type: "app",
app: "utradea",
}
},
async run({steps, $}) {
return await axios($, {
url: `http://cloud.utradea.com/v1/get-social-tickers`,
headers: {
"Content-Type": `application/json`,
"Authorization": `${this.utradea.$auth.api_key}`,
},
params: {
social: `stocktwits`,
tickers: `BTC-USD,PLTR`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})