Skip to content

Commit 225ace1

Browse files
Create CEE
1 parent 1f43fce commit 225ace1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

CEE

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from twilio.rest import Client
2+
3+
# --- CONFIG ---
4+
account_sid = 'YOUR_TWILIO_ACCOUNT_SID'
5+
auth_token = 'YOUR_TWILIO_AUTH_TOKEN'
6+
twilio_whatsapp_number = 'whatsapp:+14155238886' # Twilio sandbox number
7+
your_whatsapp_number = 'whatsapp:+YOUR_NUMBER'
8+
9+
client = Client(account_sid, auth_token)
10+
11+
def send_whatsapp_signal(pair, signal_type, entry, sl, tp, timeframe):
12+
message = f"""{signal_type.upper()} SIGNAL - {pair} ({timeframe})
13+
Entry: {entry}
14+
Stop Loss: {sl}
15+
Take Profit: {tp}
16+
Strategy: EMA + RSI + Breakout
17+
"""
18+
message = client.messages.create(
19+
from_=twilio_whatsapp_number,
20+
body=message,
21+
to=your_whatsapp_number
22+
)
23+
return message.sid

0 commit comments

Comments
 (0)